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.
|
runasArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toStringpublic boolean checkNumberOfParameters(int n)
PostfixMathCommandcheckNumberOfParameters in interface PostfixMathCommandIcheckNumberOfParameters in class PostfixMathCommandn - 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 BinaryFunctionEvaluationExceptionpublic void init(Jep jep)
JepComponentinit in interface JepComponentjep - the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponentgetLightWeightInstance in interface JepComponentCopyright © 2018 Singular Systems http://www.singularsys.com/jep