IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2026, 11:26:15 AM (4 months ago)
Author:
eugene
Message:

add spline options to extrapolate or saturate at end points; add vweave function to interpolate a vector with varying bin sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/test/spline.sh

    r41341 r42967  
    11
    22macro test1
    3 
    43  for i 0 100
    54    create x 0 50
     
    109  end
    1110end
     11
     12macro mytest.saturate
     13  vlist x 400 500  600  700  800  900
     14  vlist y  15 425  610  700  745  775
     15
     16  spline create t1 x y
     17
     18  create X 300 1000 5
     19  spline apply t1 X Y
     20
     21  lim X Y; clear; box; plot x y; plot -c red -x line X Y
     22end
     23 
     24macro mytest.extrapolate
     25  vlist x 400 500  600  700  800  900
     26  vlist y  15 425  610  700  745  775
     27
     28  spline create t1 x y
     29
     30  create X 300 1000 5
     31  spline apply t1 X Y -extrapolate
     32
     33  lim X Y; clear; box; plot x y; plot -c red -x line X Y
     34end
     35 
Note: See TracChangeset for help on using the changeset viewer.