public static class StandardDistributionNormalizer.Learner extends AbstractCloneableSerializable implements BatchLearner<java.util.Collection<java.lang.Double>,StandardDistributionNormalizer>
Learner
class implements a BatchLearner
object for
a StandardDistributionNormalizer
.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_OUTLIER_PERCENT
The default percentage of outliers is 0.0.
|
protected double |
outlierPercent
The percentage of outliers to exclude from learning.
|
Constructor and Description |
---|
Learner()
Creates a new StandardDistributionNormalizer.Learner.
|
Learner(double outlierPercent)
Creates a new StandardDistributionNormalizer.Learner.
|
Modifier and Type | Method and Description |
---|---|
double |
getOutlierPercent()
Sets the percentage of outliers to exclude from learning.
|
StandardDistributionNormalizer |
learn(java.util.Collection<java.lang.Double> values)
Learns a StandardDistributionNormalizer from the given values by
computing the mean and standard deviation of the values.
|
void |
setOutlierPercent(double outlierPercent)
Sets the percentage of outliers to exclude from learning.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static final double DEFAULT_OUTLIER_PERCENT
protected double outlierPercent
public Learner()
public Learner(double outlierPercent)
outlierPercent
- The percentage of outliers to exclude.public StandardDistributionNormalizer learn(java.util.Collection<java.lang.Double> values)
learn
in interface BatchLearner<java.util.Collection<java.lang.Double>,StandardDistributionNormalizer>
values
- The values to use.public double getOutlierPercent()
public void setOutlierPercent(double outlierPercent)
outlierPercent
- The percentage of outliers.