Package cnuphys.splot.fit
Class CubicSpline
java.lang.Object
cnuphys.splot.fit.CubicSpline
- All Implemented Interfaces:
- IValueGetter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionObtain cubic spline for the derivative by numeric differentiationdouble[]findRoots(double xmin, double xmax) Find the roots of the polynomial in a rangefindXValsOfMaxima(double xmin, double xmax) Find the xy values of the maxima of the interpolated function in a given rangedoublevalue(double x) 
- 
Constructor Details- 
CubicSplinepublic CubicSpline(double[] x, double[] y) 
 
- 
- 
Method Details- 
valuepublic double value(double x) - Specified by:
- valuein interface- IValueGetter
 
- 
derivativeObtain cubic spline for the derivative by numeric differentiation- Returns:
 
- 
findRootspublic double[] findRoots(double xmin, double xmax) Find the roots of the polynomial in a range- Parameters:
- xmin- the min value of the range
- xmax- the max value of the range
- Returns:
- an array of roots, or null
 
- 
findXValsOfMaximaFind the xy values of the maxima of the interpolated function in a given range- Parameters:
- xmin- the min value of the range
- xmax- the max value of the range
- Returns:
- and array of xy values, or null
 
 
-