| Constructor and Description |
|---|
UnivariateStatsMetaFunction(Node uniNode)
Construct from an XML node
|
UnivariateStatsMetaFunction(Repository rep,
ObjectId id_step,
int nr)
Construct using data stored in repository
|
UnivariateStatsMetaFunction(String sourceFieldName,
boolean n,
boolean mean,
boolean stdDev,
boolean min,
boolean max,
boolean median,
double arbPercentile,
boolean interpolate)
Creates a new
UnivariateStatsMetaFunction |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Make a copy
|
boolean |
equals(Object obj)
Check for equality
|
boolean |
getCalcMax()
Get whether the maximum is to be calculated for this input value
|
boolean |
getCalcMean()
Get whether the mean is to be calculated for this input field
|
boolean |
getCalcMedian()
Get whether the median is to be calculated for this input value
|
boolean |
getCalcMin()
Get whether the minimum is to be calculated for this input value
|
boolean |
getCalcN()
Get whether N is to be calculated for this input field
|
double |
getCalcPercentile()
Gets whether an arbitrary percentile is to be calculated for this input field
|
boolean |
getCalcStdDev()
Get whether the standard deviation is to be calculated for this input value
|
boolean |
getInterpolatePercentile()
Get whether interpolation is to be used in the computation of percentiles
|
String |
getSourceFieldName()
Return the name of the input field used by this UnivariateStatsMetaFunction
|
String |
getXML()
Return a String containing XML describing this UnivariateStatsMetaFunction
|
int |
hashCode() |
int |
numberOfMetricsRequested()
Returns the number of metrics to compute
|
void |
saveRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId id_transformation,
ObjectId id_step,
int nr)
Save this UnivariateStatsMetaFunction to a repository
|
void |
setCalcMax(boolean b)
Set whether the maximum is to be calculated for this input value
|
void |
setCalcMean(boolean b)
Set whether to calculate the mean for this input field
|
void |
setCalcMedian(boolean b)
Set whether the median is to be calculated for this input value
|
void |
setCalcMin(boolean b)
Set whether the minimum is to be calculated for this input value
|
void |
setCalcN(boolean n)
Set whether to calculate N for this input field
|
void |
setCalcPercentile(double percentile)
Sets whether an arbitrary percentile is to be calculated for this input field
|
void |
setCalcStdDev(boolean b)
Set whether the standard deviation is to be calculated for this input value
|
void |
setInterpolatePercentile(boolean i)
Set whether interpolation is to be used in the computation of percentiles
|
void |
setSourceFieldName(String sn)
Set the name of the input field used by this UnivariateStatsMetaFunction.
|
public static final String XML_TAG
public UnivariateStatsMetaFunction(String sourceFieldName, boolean n, boolean mean, boolean stdDev, boolean min, boolean max, boolean median, double arbPercentile, boolean interpolate)
UnivariateStatsMetaFunctionsourceFieldName - the name of the input field to compute stats forn - output Nmean - compute and output the meanstdDev - compute and output the standard deviationmin - output the minumum valuemax - output the maximum valuemedian - compute and output the median (requires data caching and sorting)arbPercentile - compute and output a percentile (0 <= arbPercentile <= 1)interpolate - true if interpolation is to be used for percentiles (rather than a simple method). See The Engineering Statistics
Handbook for details.public UnivariateStatsMetaFunction(Node uniNode)
uniNode - a XML nodepublic UnivariateStatsMetaFunction(Repository rep, ObjectId id_step, int nr) throws KettleException
rep - the repositoryid_step - the id of the stepnr - the step numberKettleException - if an error occurspublic boolean equals(Object obj)
public String getXML()
public void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step, int nr) throws KettleException
rep - the repository to save toid_transformation - the transformation idid_step - the step idnr - the step numberKettleException - if an error occurspublic Object clone()
public void setSourceFieldName(String sn)
sn - the name of the source field to usepublic String getSourceFieldName()
public void setCalcN(boolean n)
n - true if N is to be calculatedpublic boolean getCalcN()
public void setCalcMean(boolean b)
b - true if the mean is to be calculatedpublic boolean getCalcMean()
public void setCalcStdDev(boolean b)
b - true if the standard deviation is to be calculatedpublic boolean getCalcStdDev()
public void setCalcMin(boolean b)
b - true if the minimum is to be calculatedpublic boolean getCalcMin()
public void setCalcMax(boolean b)
b - true if the maximum is to be calculatedpublic boolean getCalcMax()
public void setCalcMedian(boolean b)
b - true if the median is to be calculatedpublic boolean getCalcMedian()
public boolean getInterpolatePercentile()
public void setInterpolatePercentile(boolean i)
i - true is interpolation is to be usedpublic double getCalcPercentile()
public void setCalcPercentile(double percentile)
percentile - the percentile to compute (0 <= percentile <= 100)public int numberOfMetricsRequested()
Copyright © 2018 Hitachi Vantara. All rights reserved.