Class FieldIndex
- java.lang.Object
-
- org.pentaho.di.trans.steps.univariatestats.FieldIndex
-
public class FieldIndex extends Object
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
Fields Modifier and Type Field Description double
m_arbitraryPercentile
int
m_columnIndex
double
m_count
double
m_max
double
m_mean
double
m_median
double
m_min
double
m_stdDev
double
m_sum
double
m_sumSq
-
Constructor Summary
Constructors Constructor Description FieldIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calculateDerived()
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 Detail
-
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
-
-
Method Detail
-
calculateDerived
public void calculateDerived()
-
generateOutputValues
public Object[] generateOutputValues(UnivariateStatsMetaFunction usmf, ArrayList<Number> cache)
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
-
-