public class Rank extends BinaryFunction implements JepComponent
Modifier and Type | Class and Description |
---|---|
static class |
Rank.Type
Type of Rank to calculate.
|
curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
Rank(Rank.Type type,
boolean descending,
FieldI f)
Construct the rank function.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkNumberOfParameters(int n)
Checks the number of parameters of the function.
|
java.lang.Object |
eval(java.lang.Object val,
java.lang.Object data) |
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
void |
init(Jep jep)
Initialize the component.
|
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
public boolean checkNumberOfParameters(int n)
PostfixMathCommand
checkNumberOfParameters
in interface PostfixMathCommandI
checkNumberOfParameters
in class PostfixMathCommand
n
- number of parameters function will be called with.public java.lang.Object eval(java.lang.Object val, java.lang.Object data) throws EvaluationException
eval
in class BinaryFunction
EvaluationException
public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
Copyright © 2018 Singular Systems http://www.singularsys.com/jep