91
After reading a set of input rows, the accumulated max, min, counts,
and crosstab values can be extracted from the proc.
CNKProcCount::
CNKProcCount();
virtual ~CNKProcCount();
virtual void init();
virtual void execute();
These are the constructor, destructor, and init() methods. The
execute() method is run when this CNKProc is executed within a
pipeline.
CNKProcCount::
void setCrossSize(int val);
int getCrossSize();
void setCrossColumn(int crossNum, int colNum);
int getCrossColumn(int crossNum);
Defines the set of input columns for which crosstabs will be
calculated.
setCrossSize sets the number of columns for crosstabs: if
this is zero, no crosstabs will be calculated.
setCrossColumn specifies
the input column to be read for each of the crosstabs.
crossNum is the
crosstab column in the range
0..getCrossSize()-1. colNum gives the
column number of the specified input columns.
CNKProcCount::
double getMin(int colNum);
double getMax(int colNum);
double getMean(int colNum);
double getStdDev(int colNum);
INT64 getCountNA(int colNum);
INT64 getCountOK(int colNum);
After some input rows have been processed, these methods can be
used to extract information accumulated for each input column.
colNum is the number of the input column, starting from 0.
getMin and getMax return the minimum and maximum values for all
non-NA values read from the specified input column.
getMean and
getStdDev return the mean and standard deviation of the specified
column. If no non-NA values have been read (or less than two values
for
getStdDev), these return NaN.
Commenti su questo manuale