ShapeFunction

constructor(functions: SortedMap<Double, UnivariateFunction>, extrapolateX: Boolean = false, extrapolateY: Boolean = false)

Parameters

functions

univariate functions parallel to the y axis, whereas the key denotes the location on the x axis

extrapolateX

if true, the last (or first) function is used when exceeding (or falling below)

extrapolateY

if true, the last (or first) value is used, which is still within the domain of the respective function