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