| java.lang.Object org.apache.poi.hssf.record.formula.functions.NumericFunction org.apache.poi.hssf.record.formula.functions.MultiOperandNumericFunction
All known Subclasses: org.apache.poi.hssf.record.formula.functions.Mode, org.apache.poi.hssf.record.formula.functions.Min, org.apache.poi.hssf.record.formula.functions.Sum, org.apache.poi.hssf.record.formula.functions.Median, org.apache.poi.hssf.record.formula.functions.Product, org.apache.poi.hssf.record.formula.functions.Stdev, org.apache.poi.hssf.record.formula.functions.Maxa, org.apache.poi.hssf.record.formula.functions.Mina, org.apache.poi.hssf.record.formula.functions.Devsq, org.apache.poi.hssf.record.formula.functions.Small, org.apache.poi.hssf.record.formula.functions.Avedev, org.apache.poi.hssf.record.formula.functions.Max, org.apache.poi.hssf.record.formula.functions.Large, org.apache.poi.hssf.record.formula.functions.Sumsq, org.apache.poi.hssf.record.formula.functions.Average,
MultiOperandNumericFunction | abstract public class MultiOperandNumericFunction extends NumericFunction (Code) | | author: Amol S. Deshmukh < amolweb at ya hoo dot com > author: This is the super class for all excel function evaluator author: classes that take variable number of operands, and author: where the order of operands does not matter |
Method Summary | |
protected static boolean | areSubArraysConsistent(double[][] values) | protected int | getMaxNumOperands() Maximum number of operands accepted by this function. | protected double[] | getNumberArray(Eval[] operands, int srcRow, short srcCol) Returns a double array that contains values for the numeric cells
from among the list of operands. | protected double[] | getNumberArray(Eval operand, int srcRow, short srcCol) Same as getNumberArray(Eval[], int, short) except that this
takes Eval instead of Eval[]. | protected ValueEvalToNumericXlator | getXlator() this is the default impl for the factory method getXlator
of the super class NumericFunction. |
areSubArraysConsistent | protected static boolean areSubArraysConsistent(double[][] values)(Code) | | |
getMaxNumOperands | protected int getMaxNumOperands()(Code) | | Maximum number of operands accepted by this function.
Subclasses may override to change default value.
|
getNumberArray | protected double[] getNumberArray(Eval[] operands, int srcRow, short srcCol)(Code) | | Returns a double array that contains values for the numeric cells
from among the list of operands. Blanks and Blank equivalent cells
are ignored. Error operands or cells containing operands of type
that are considered invalid and would result in #VALUE! error in
excel cause this function to return null.
Parameters: operands - Parameters: srcRow - Parameters: srcCol - |
getNumberArray | protected double[] getNumberArray(Eval operand, int srcRow, short srcCol)(Code) | | Same as getNumberArray(Eval[], int, short) except that this
takes Eval instead of Eval[].
Parameters: operand - Parameters: srcRow - Parameters: srcCol - |
getXlator | protected ValueEvalToNumericXlator getXlator()(Code) | | this is the default impl for the factory method getXlator
of the super class NumericFunction. Subclasses can override this method
if they desire to return a different ValueEvalToNumericXlator instance
than the default.
|
Fields inherited from org.apache.poi.hssf.record.formula.functions.NumericFunction | final protected static double E(Code)(Java Doc) final protected static double PI(Code)(Java Doc)
|
|
|