Class FieldIndex
java.lang.Object
org.pentaho.di.trans.steps.univariatestats.FieldIndex
Class used to hold operating field index, intermediate data and final results for a stats calculation.
Has functions to compute the mean, standard deviation and arbitrary percentiles. Percentiles can be computed using
interpolation or a simple method. See
The Engineering Statistics Handbook for details.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
int
double
double
double
double
double
double
double
double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Object[]
generateOutputValues
(UnivariateStatsMetaFunction usmf, ArrayList<Number> cache) Constructs an array of Objects containing the requested statistics for one univariate stats meta function using thisFieldIndex
.
-
Field Details
-
m_columnIndex
public int m_columnIndex -
m_count
public double m_count -
m_mean
public double m_mean -
m_stdDev
public double m_stdDev -
m_max
public double m_max -
m_min
public double m_min -
m_median
public double m_median -
m_arbitraryPercentile
public double m_arbitraryPercentile -
m_sum
public double m_sum -
m_sumSq
public double m_sumSq
-
-
Constructor Details
-
FieldIndex
public FieldIndex()
-
-
Method Details
-
calculateDerived
public void calculateDerived() -
generateOutputValues
Constructs an array of Objects containing the requested statistics for one univariate stats meta function using thisFieldIndex
.- Parameters:
usmf
- theUnivariateStatsMetaFunction
to compute stats for. This contains the input field selected by the user along with which stats to compute for it.- Returns:
- an array of computed statistics
-