IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39231


Ignore:
Timestamp:
Dec 4, 2015, 10:12:36 AM (11 years ago)
Author:
eugene
Message:

saturate the spline at the ends

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.data/spline.c

    r34584 r39231  
    3232  float dx, a, b, value;
    3333 
     34  // saturate correction at high and low ends
     35  if (X < x[0]) return y[0];
     36  if (X > x[N-1]) return y[N-1];
     37
    3438  /* find correct element in array (x must be sorted) */
    3539  lo = 0;
     
    9094  opihi_flt dx, a, b, value;
    9195 
     96  // saturate correction at high and low ends
     97  if (X < x[0]) return y[0];
     98  if (X > x[N-1]) return y[N-1];
     99
    92100  /* find correct element in array (x must be sorted) */
    93101  lo = 0;
Note: See TracChangeset for help on using the changeset viewer.