IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2008, 1:21:51 PM (18 years ago)
Author:
eugene
Message:

removing Press code

File:
1 edited

Legend:

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

    r2598 r16119  
    22
    33/* construct the natural spline for x, y in y2 */
    4 void spline (float *x, float *y, int N, float *y2) {
     4void spline_construct (float *x, float *y, int N, float *y2) {
    55
    66  int i;
     
    2727
    2828/* evaluate spline for x, y, y2 at X */
    29 float splint (float *x, float *y, float *y2, int N, float X) {
     29float spline_apply (float *x, float *y, float *y2, int N, float X) {
    3030
    3131  int i, lo, hi;
     
    3636  hi = N-1;
    3737  while (hi - lo > 1) {
    38     i = (hi+lo) >> 1;
    39     if (x[i] > X)
     38    i = 0.5*(hi+lo);
     39    if (x[i] > X) {
    4040      hi = i;
    41     else
     41    } else {
    4242      lo = i;
     43    }
    4344  }
    4445
Note: See TracChangeset for help on using the changeset viewer.