public class StandardizationManipulator extends Object implements Manipulator
Constructor and Description |
---|
StandardizationManipulator(String representation,
List<Example> examples)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
manipulate(Example example) |
void |
standardize(Vector vector)
It standardizes the feature values of
vector . |
public StandardizationManipulator(String representation, List<Example> examples)
representation
- the vectorial representation to be standardizedexamples
- the examples on which computing the feature means and standard deviations to be applied during the
standardization processpublic void standardize(Vector vector)
vector
. Let \(x_i\) be
the value of the i-th feature whose mean and standard deviation are \(\mu_i\) and \(\sigma_i\) respectively. Then
the standardized value is \(\hat{x_i} = (x_i-\mu_i)/\sigma_i\)vector
- the vector to be standardizedpublic void manipulate(Example example)
manipulate
in interface Manipulator
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.