StackedFunction
class StackedFunction(memberFunctions: List<UnivariateFunction>, operation: (operands: List<Double>) -> Double, defaultValue: Double = Double.NaN) : UnivariateFunction
Stacks multiple functions and outputs the value according to the defined operation.
Parameters
memberFunctions
functions to be stacked together
operation
operation which combines the values of each member function
defaultValue
the default value, if one of the member functions is not defined at the requested parameter