Class LinearInterpolator
java.lang.Object
solvers.priority.interpolators.LinearInterpolator
- All Implemented Interfaces:
Interpolator
Linear interpolator of the priority MVA utilization calculators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleinterpolate(double x1, double y1, double x2, double y2, double mainX) Returns an interpolated value for mainY given (x1, y1), (x2, y2) When used for calculating \rho' in PrioMVA, x1 = floor(mainX) y1 = rho(n - x1) x2 = ceil(mainX) y2 = rho(n - x2) As x1 < x2, y1 >= y2 as the utilization increases as n does
-
Constructor Details
-
LinearInterpolator
public LinearInterpolator()
-
-
Method Details
-
interpolate
public double interpolate(double x1, double y1, double x2, double y2, double mainX) Description copied from interface:InterpolatorReturns an interpolated value for mainY given (x1, y1), (x2, y2) When used for calculating \rho' in PrioMVA, x1 = floor(mainX) y1 = rho(n - x1) x2 = ceil(mainX) y2 = rho(n - x2) As x1 < x2, y1 >= y2 as the utilization increases as n does- Specified by:
interpolatein interfaceInterpolator
-