Changeset 39231
- Timestamp:
- Dec 4, 2015, 10:12:36 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.data/spline.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.data/spline.c
r34584 r39231 32 32 float dx, a, b, value; 33 33 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 34 38 /* find correct element in array (x must be sorted) */ 35 39 lo = 0; … … 90 94 opihi_flt dx, a, b, value; 91 95 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 92 100 /* find correct element in array (x must be sorted) */ 93 101 lo = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
