Class ConstantSpline
java.lang.Object
com.walkfares.odsl.conversion.scale.BaseInterpolator
com.walkfares.odsl.conversion.scale.ConstantSpline
- All Implemented Interfaces:
Interpolator
public class ConstantSpline extends BaseInterpolator implements Interpolator
-
Method Summary
Modifier and Type Method Description static ConstantSpline
create(double[] x, double[] y)
static ConstantSpline
create(VarTimeSeries ts)
double
interpolate(double x)
double
interpolate(UTCDate d)
ConstantSpline
setObserved(TimeSeriesObserved observed)
Methods inherited from class com.walkfares.odsl.conversion.scale.BaseInterpolator
average, beginning, delta, end, high, low, sum
-
Method Details
-
setObserved
-
create
-
create
-
interpolate
- Specified by:
interpolate
in interfaceInterpolator
-
interpolate
public double interpolate(double x)- Specified by:
interpolate
in interfaceInterpolator
-