Package org.planit.utils.cumulatives
Class PiecewiseLinearCumulativeCurve
- java.lang.Object
-
- org.planit.utils.cumulatives.PiecewiseLinearCumulativeCurve
-
public class PiecewiseLinearCumulativeCurve extends Object
Represents a piecewise linear cumulative curve- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PiecewiseLinearCumulativeCurve()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CumulativePoint cumulativePoint, double timeInSecondsEpsilon)
append a new cumulative point to the curve which must be later or equal than the current latest point given the passed in timeInSecondsEpsilondouble
computeSurfaceUnderCurve()
the total surface under this curve
-
-
-
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 addtimeInSecondsEpsilon
- epsilon- Throws:
PlanItException
- thrown if error
-
computeSurfaceUnderCurve
public double computeSurfaceUnderCurve()
the total surface under this curve- Returns:
- total surface under this curve
-
-