gov.sandia.cognition.learning.data.feature
Class StandardDistributionNormalizer.Learner

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.data.feature.StandardDistributionNormalizer.Learner
All Implemented Interfaces:
BatchLearner<Collection<Double>,StandardDistributionNormalizer>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
StandardDistributionNormalizer

public static class StandardDistributionNormalizer.Learner
extends AbstractCloneableSerializable
implements BatchLearner<Collection<Double>,StandardDistributionNormalizer>

The Learner class implements a BatchLearner object for a StandardDistributionNormalizer.

See Also:
Serialized Form

Field Summary
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 Summary
StandardDistributionNormalizer.Learner()
          Creates a new StandardDistributionNormalizer.Learner.
StandardDistributionNormalizer.Learner(double outlierPercent)
          Creates a new StandardDistributionNormalizer.Learner.
 
Method Summary
 double getOutlierPercent()
          Sets the percentage of outliers to exclude from learning.
 StandardDistributionNormalizer learn(Collection<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.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Field Detail

DEFAULT_OUTLIER_PERCENT

public static final double DEFAULT_OUTLIER_PERCENT
The default percentage of outliers is 0.0.

See Also:
Constant Field Values

outlierPercent

protected double outlierPercent
The percentage of outliers to exclude from learning.

Constructor Detail

StandardDistributionNormalizer.Learner

public StandardDistributionNormalizer.Learner()
Creates a new StandardDistributionNormalizer.Learner.


StandardDistributionNormalizer.Learner

public StandardDistributionNormalizer.Learner(double outlierPercent)
Creates a new StandardDistributionNormalizer.Learner.

Parameters:
outlierPercent - The percentage of outliers to exclude.
Method Detail

learn

public StandardDistributionNormalizer learn(Collection<Double> values)
Learns a StandardDistributionNormalizer from the given values by computing the mean and standard deviation of the values.

Specified by:
learn in interface BatchLearner<Collection<Double>,StandardDistributionNormalizer>
Parameters:
values - The values to use.
Returns:
The StandardDistributionNormalizer computed from the given values.

getOutlierPercent

public double getOutlierPercent()
Sets the percentage of outliers to exclude from learning.

Returns:
The percentage of outliers.

setOutlierPercent

public void setOutlierPercent(double outlierPercent)
Sets the percentage of outliers to exclude from learning. Must be between 0.0 and 1.0.

Parameters:
outlierPercent - The percentage of outliers.