Ignore:
Timestamp:
Dec 13, 2008, 10:28:39 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #466. Added more GSL functionality, added constructor tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/GSLInterpolation.cc

    r1644 r1648  
    5858
    5959
    60   double GSLInterpolation::evaluate(const double x) const
     60  size_t GSLInterpolation::bsearch(const double x_array[], double x,
     61                                   size_t index_lo, size_t index_hi) const
     62  {
     63    return gsl_interp_bsearch(x_array, x, index_lo, index_hi);
     64  }
     65
     66
     67  double GSLInterpolation::evaluate(double x)
    6168  {
    62     return gsl_interp_eval(interpolator_,x_,y_,x,accelerator_);
     69    return gsl_interp_eval(interpolator_, x_, y_, x, accelerator_);
     70  }
     71
     72
     73  double GSLInterpolation::evaluate_derivative(double x)
     74  {
     75    return gsl_interp_eval_deriv(interpolator_, x_, y_, x, accelerator_);
     76  }
     77
     78
     79  double GSLInterpolation::evaluate_derivative2(double x)
     80  {
     81    return gsl_interp_eval_deriv2(interpolator_, x_, y_, x, accelerator_);
     82  }
     83
     84
     85  double GSLInterpolation::evaluate_integral(double a, double b)
     86  {
     87    return gsl_interp_eval_integ(interpolator_, x_, y_, a, b, accelerator_);
     88  }
     89
     90
     91  unsigned int GSLInterpolation::min_size(void) const
     92  {
     93    return gsl_interp_min_size(interpolator_);
    6394  }
    6495
Note: See TracChangeset for help on using the changeset viewer.