Class LinearInterpolator

java.lang.Object
solvers.priority.interpolators.LinearInterpolator
All Implemented Interfaces:
Interpolator

public class LinearInterpolator extends Object implements Interpolator
Linear interpolator of the priority MVA utilization calculators.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    interpolate(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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: Interpolator
      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
      Specified by:
      interpolate in interface Interpolator