| Constructor and Description |
|---|
ContinuousPiecewiseLinearFunction(Map<BigDecimal,BigDecimal> cornerPoints)
Constructs a new PieceWiseLinear function with a restricted domain interval
|
| Modifier and Type | Method and Description |
|---|---|
LinearFunction |
functionAt(BigDecimal x) |
List<AbstractMap.SimpleImmutableEntry<BigDecimal,BigDecimal>> |
getCornerPoints()
Provides a list with all corner point (X, Y) pairs, sorted with increasing X.
|
BigDecimal |
getY(BigDecimal x) |
public ContinuousPiecewiseLinearFunction(Map<BigDecimal,BigDecimal> cornerPoints)
cornerPoints - A map with key = x-values and value = y-values.
The map has to include all corner points of the function, including lower and upper end of domain. public List<AbstractMap.SimpleImmutableEntry<BigDecimal,BigDecimal>> getCornerPoints()
public BigDecimal getY(BigDecimal x)
public LinearFunction functionAt(BigDecimal x) throws NotDifferentiableException
NotDifferentiableExceptionCopyright © 2017. All rights reserved.