Module gr_spline


Name:
gr_spline - a GRToolbox module
Description:
Splining 2 or 3D point data.
Different parmetrizations can be chosen.
All points must be distinct.
Synopsis:
-[eps g n arc chord normx absx equih o v noc nof now skip f m c e i s l]
-help For help on all options.
Special Options:
-g name File for the knots. (Default: equidistant knots)
-n int Number of points to be splined. (Default: 100)
-eps double Accuracy for taking known points. (Default: 0)
Parametrization:
-chord Using chordal parametrization, which is an
approximation to the arclength.
-arc Same as -chord.
-normx Using (x[i+1]-x_[i])*(x[i+1]-x_[i])
as knots.
-absx Using (x[i+1]-x_[i])*(x[i+1]-x_[i])
as knots.
-equi Using equidistant spacing between as knots (Default).
Example Input Data:
1 0
3 4
5 2
8 9
10 3
&
0 1
2 3
3 4
4 9
Example Output Data:
1 0
1.08441 0.261741
1.16878 0.5225
1.25309 0.781294
1.33729 1.03714
1.42134 1.28906
1.50522 1.53607
1.58889 1.77718
1.67231 2.01141
1.75545 2.23779
1.83827 2.45533
1.92073 2.66304
2.00281 2.85995
2.08446 3.04507
2.16566 3.21742
2.24636 3.37602
2.32653 3.51988
2.40613 3.64803
2.48513 3.75947
2.5635 3.85324
2.6412 3.92834
2.71819 3.98379
2.79443 4.01862
2.8699 4.03183
2.94456 4.02245
3.01837 3.98951
3.09137 3.93313
3.16371 3.85561
3.23557 3.75949
3.30713 3.6473
3.37857 3.52159
3.45006 3.38488
3.52179 3.23971
3.59392 3.08862
3.66663 2.93416
3.7401 2.77885
3.81451 2.62523
3.89003 2.47584
3.96684 2.33322
4.04511 2.1999
4.12503 2.07842
4.20677 1.97132
4.29051 1.88114
4.37642 1.8104
4.46468 1.76166
4.55546 1.73744
4.64895 1.74029
4.74532 1.77273
4.84475 1.83732
4.9474 1.93658
5.05346 2.07292
5.16287 2.24602
5.27537 2.45275
5.39067 2.68988
5.50851 2.9542
5.6286 3.24246
5.75068 3.55143
5.87446 3.87789
5.99968 4.21862
6.12605 4.57036
6.2533 4.92991
6.38115 5.29403
6.50934 5.65948
6.63757 6.02305
6.76558 6.38149
6.8931 6.73159
7.01984 7.07011
7.14553 7.39381
7.2699 7.69948
7.39267 7.98388
7.51356 8.24378
7.63229 8.47596
7.7486 8.67718
7.86221 8.84421
7.97284 8.97382
8.08024 9.06313
8.18443 9.11226
8.28552 9.12287
8.38366 9.09663
8.47898 9.03521
8.57161 8.9403
8.66169 8.81357
8.74936 8.65668
8.83474 8.47133
8.91798 8.25917
8.9992 8.0219
9.07854 7.76117
9.15613 7.47867
9.23212 7.17607
9.30663 6.85505
9.37979 6.51728
9.45175 6.16444
9.52263 5.79819
9.59257 5.42022
9.6617 5.03221
9.73017 4.63581
9.7981 4.23272
9.86562 3.82461
9.93288 3.41314
10 3
&
0 1
0.0686794 1.07675
0.137314 1.15342
0.20586 1.2299
0.274273 1.30612
0.342507 1.38198
0.410518 1.4574
0.478263 1.53228
0.545696 1.60654
0.612772 1.68009
0.679448 1.75284
0.745679 1.82469
0.81142 1.89557
0.876627 1.96537
0.941255 2.03402
1.00526 2.10143
1.0686 2.16749
1.13122 2.23214
1.19309 2.29527
1.25415 2.35679
1.31437 2.41663
1.3737 2.47468
1.4321 2.53086
1.48951 2.58509
1.54591 2.63727
1.60123 2.6873
1.65544 2.73512
1.70849 2.78062
1.76034 2.82371
1.81094 2.86431
1.86026 2.90233
1.90823 2.93768
1.95483 2.97026
2 3
2.04372 3.02686
2.08602 3.05106
2.12697 3.07288
2.16662 3.09259
2.20502 3.11048
2.24222 3.12682
2.2783 3.14189
2.31329 3.15598
2.34726 3.16935
2.38026 3.18228
2.41235 3.19506
2.44358 3.20796
2.47401 3.22127
2.50369 3.23525
2.53268 3.25019
2.56104 3.26636
2.58882 3.28405
2.61608 3.30353
2.64287 3.32508
2.66925 3.34898
2.69527 3.37551
2.72099 3.40494
2.74646 3.43755
2.77175 3.47363
2.7969 3.51344
2.82198 3.55728
2.84703 3.60541
2.87212 3.65811
2.89729 3.71567
2.92261 3.77836
2.94814 3.84646
2.97391 3.92025
3 4
3.02644 4.08592
3.05325 4.17789
3.08039 4.27573
3.10787 4.37925
3.13567 4.48825
3.16379 4.60255
3.1922 4.72197
3.22091 4.8463
3.24989 4.97536
3.27914 5.10896
3.30864 5.24691
3.33839 5.38903
3.36838 5.53512
3.39858 5.685
3.429 5.83847
3.45962 5.99534
3.49043 6.15544
3.52141 6.31856
3.55257 6.48452
3.58387 6.65312
3.61533 6.82419
3.64691 6.99753
3.67862 7.17295
3.71044 7.35026
3.74236 7.52928
3.77437 7.70981
3.80646 7.89166
3.83862 8.07465
3.87083 8.25858
3.90308 8.44328
3.93537 8.62854
3.96768 8.81417
4 9



Back to List of all GR Modules.