public interface CompiledFunction
Modifier and Type | Interface and Description |
---|---|
static class |
CompiledFunction.Add
The addition function
|
static class |
CompiledFunction.Constant
Represents a constant
|
static class |
CompiledFunction.Divide
The divide function
|
static class |
CompiledFunction.Function
Represents an arbitary function defined in a
FunctionParser |
static class |
CompiledFunction.Multiply
The multiply function
|
static class |
CompiledFunction.Power
The power function
|
static class |
CompiledFunction.Subtract
The subtract function
|
static class |
CompiledFunction.Variable
Represents a variable - simply returns the value of the variable
|
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
|
double compute(java.util.Map<java.lang.String,java.lang.Double> values) throws NoSuchVariable
values
- Map from variable name to valueNoSuchVariable
- Thrown if values does not contain a needed variablejava.util.Set<java.lang.String> neededParams()