public static class MultivariateDecorrelator.FullCovarianceLearner extends AbstractCloneableSerializable implements BatchLearner<java.util.Collection<? extends Vectorizable>,MultivariateDecorrelator>
FullCovarianceLearner
class implements a BatchLearner
object for a MultivariateDecorrelator
.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_DEFAULT_COVARIANCE
The default value for default covariance is 1.0E-5.
|
protected double |
defaultCovariance
The default covariance.
|
Constructor and Description |
---|
FullCovarianceLearner()
Creates a new MultivariateDecorrelator.FullCovarianceLearner with
the default value for default covariance.
|
FullCovarianceLearner(double defaultCovariance)
Creates a new MultivariateDecorrelator.FullCovarianceLearner with the
given value for default covariance.
|
Modifier and Type | Method and Description |
---|---|
double |
getDefaultCovariance()
Gets the default covariance value.
|
MultivariateDecorrelator |
learn(java.util.Collection<? extends Vectorizable> values)
Learns a MultivariateDecorrelator from the given values by
computing the mean and covariance of the dimensions.
|
void |
setDefaultCovariance(double defaultCovariance)
Sets the default covariance value.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static final double DEFAULT_DEFAULT_COVARIANCE
protected double defaultCovariance
public FullCovarianceLearner()
public FullCovarianceLearner(double defaultCovariance)
defaultCovariance
- The default covariance value. Added to the diagonal to prevent
it from becoming singularpublic MultivariateDecorrelator learn(java.util.Collection<? extends Vectorizable> values)
learn
in interface BatchLearner<java.util.Collection<? extends Vectorizable>,MultivariateDecorrelator>
values
- The values to use.public double getDefaultCovariance()
public void setDefaultCovariance(double defaultCovariance)
defaultCovariance
- The default covariance value. Must be non-negative.