Class PiecewiseLinearCumulativeCurve


  • public class PiecewiseLinearCumulativeCurve
    extends Object
    Represents a piecewise linear cumulative curve
    Author:
    markr
    • Constructor Detail

      • PiecewiseLinearCumulativeCurve

        public PiecewiseLinearCumulativeCurve()
        Constructor
    • Method Detail

      • add

        public void add​(CumulativePoint cumulativePoint,
                        double timeInSecondsEpsilon)
                 throws PlanItException
        append a new cumulative point to the curve which must be later or equal than the current latest point given the passed in timeInSecondsEpsilon
        Parameters:
        cumulativePoint - to add
        timeInSecondsEpsilon - epsilon
        Throws:
        PlanItException - thrown if error
      • computeSurfaceUnderCurve

        public double computeSurfaceUnderCurve()
        the total surface under this curve
        Returns:
        total surface under this curve