array The array or range of data with numeric values that defines relative standing.
X The value for which you want to know the rank.
significance Optional. A value that identifies the number of significant digits for the returned percentage value.
If omitted, PERCENTRANK uses three digits (0.xxx).
Returns a number between 0 and 1 representing a percentage.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private ValueEval | |
| public ValueEval | evaluate(ValueEval[]
the evaluated function arguments. Empty values are represented with
args, int BlankEval or MissingArgEval, never null.row index of the cell containing the formula under evaluation srcRowIndex, int column index of the cell containing the formula under evaluation srcColumnIndex)Implements org.
|
| public static List | |
| public static NumberEval | interpolate(double x, double closestMatchBelow, double closestMatchAbove, NumberEval belowRank, NumberEval aboveRank, int significance)
|
| public static double |
| instance | back to summary |
|---|---|
| public static final Function instance | |
| PercentRank | back to summary |
|---|---|
| private PercentRank() | |
| calculateRank | back to summary |
|---|---|
| private ValueEval calculateRank(List<Double> numbers, double x, int significance, boolean recurse) | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) Implements org.
| |
| getValues | back to summary |
|---|---|
public static List
| |
| interpolate | back to summary |
|---|---|
public static NumberEval interpolate(double x, double closestMatchBelow, double closestMatchAbove, NumberEval belowRank, NumberEval aboveRank, int significance)
| |
| round | back to summary |
|---|---|
public static double round(BigDecimal bd, int significance)
| |