Class ChainedUnaryFunction

java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.extensions.chained.ChainedUnaryFunction
All Implemented Interfaces:
ChainedFunctionI, DirtyFunction, JepComponent, PostfixMathCommandI, Serializable

public class ChainedUnaryFunction extends PostfixMathCommand implements ChainedFunctionI, JepComponent, DirtyFunction
Converts a UnaryFunction so that it can be used in a chain. A unary function f(x) will be converted to a nullary function F() that can be used in the middle of a chain as
[1..10] . F() . sum() 
The apply(Evaluator, Node, Object) method will evaluate the function f(x) using the argument from the chain.
See Also:
  • Constructor Details

    • ChainedUnaryFunction

      public ChainedUnaryFunction(UnaryFunction inner)
  • Method Details