public static class CompiledFunction.Multiply extends java.lang.Object implements CompiledFunction
CompiledFunction.Add, CompiledFunction.Constant, CompiledFunction.Divide, CompiledFunction.Function, CompiledFunction.Multiply, CompiledFunction.Power, CompiledFunction.Subtract, CompiledFunction.Variable| Constructor and Description |
|---|
CompiledFunction.Multiply(CompiledFunction a,
CompiledFunction b)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
compute(java.util.Map<java.lang.String,java.lang.Double> values)
Computes the result of the function
|
java.util.Set<java.lang.String> |
neededParams()
Returns a list of variable that the function expects to be passed to it
|
public CompiledFunction.Multiply(CompiledFunction a, CompiledFunction b)
a - a in a * bb - b in a * bpublic double compute(java.util.Map<java.lang.String,java.lang.Double> values)
throws NoSuchVariable
CompiledFunctioncompute in interface CompiledFunctionvalues - Map from variable name to valueNoSuchVariable - Thrown if values does not contain a needed variablepublic java.util.Set<java.lang.String> neededParams()
CompiledFunctionneededParams in interface CompiledFunction