Constructor and Description |
---|
Mode() |
Modifier and Type | Method and Description |
---|---|
static double |
evaluate(double[] v)
if v is zero length or contains no duplicates, return value is
Double.NaN.
|
ValueEval |
evaluate(ValueEval[] args,
int srcCellRow,
int srcCellCol) |
public static double evaluate(double[] v) throws EvaluationException
v
- EvaluationException
public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol)
evaluate
in interface Function
args
- the evaluated function arguments. Empty values are represented with
BlankEval
or MissingArgEval
, never null
.srcCellRow
- row index of the cell containing the formula under evaluationsrcCellCol
- column index of the cell containing the formula under evaluationErrorEval
, never null
.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN
be sure to translate the result to ErrorEval.NUM_ERROR
.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.