Interface PiecewiseFunction.BreakPoint
- Enclosing class:
PiecewiseFunction
public static interface PiecewiseFunction.BreakPoint
Represents a break point in the piecewise function, characterized by its
argument, and one or both of the following:
- value step change,
- rate change.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleargument()Returns the argument at which this break point occurs.default booleanChecks whether the function is decreasing at this break point, i.e: it has a negative step change, or the rate is negative at and immediately after this break point.default booleanChecks whether the function is increasing at this break point, i.e: it has a positive step change, or the rate is positive at and immediately after this break point.doublerate()Returns the rate of change of the function at this break point, after the possible rate change.doubleReturns the change in rate at this break point, possibly zero, always finite.doublevalue()Returns the value of the function at this break point, after the possible step change.default doubleReturns the value of the function before a step change at this break point, if any.doubleReturns the change in value at this break point, possibly zero, always finite.
-
Method Details
-
argument
double argument()Returns the argument at which this break point occurs.- Returns:
- the argument of this break point, might be infinite
-
value
double value()Returns the value of the function at this break point, after the possible step change.- Returns:
- the value at this break point
-
rate
double rate()Returns the rate of change of the function at this break point, after the possible rate change.- Returns:
- the rate at this break point
-
valueDelta
double valueDelta()Returns the change in value at this break point, possibly zero, always finite.- Returns:
- the value delta at this break point
-
rateDelta
double rateDelta()Returns the change in rate at this break point, possibly zero, always finite.- Returns:
- the value delta at this break point
-
valueBeforeStepChange
default double valueBeforeStepChange()Returns the value of the function before a step change at this break point, if any.- Returns:
- the value before a possible step change
-
isIncreasing
default boolean isIncreasing()Checks whether the function is increasing at this break point, i.e:- it has a positive step change, or
- the rate is positive at and immediately after this break point.
- Returns:
trueif the the function is increasing at this break point,falseotherwise.
-
isDecreasing
default boolean isDecreasing()Checks whether the function is decreasing at this break point, i.e:- it has a negative step change, or
- the rate is negative at and immediately after this break point.
- Returns:
trueif the the function is decreasing at this break point,false otherwise.
-