K - Type of a key in upstream data.V - Type of a value in upstream data.public class NormalizationPreprocessor<K,V> extends Object implements IgniteBiFunction<K,V,double[]>
a_i = (a_i - min_i) / (max_i - min_i) for all i,
where i is a number of column, max_i is the value of the maximum element in this columns,
min_i is the value of the minimal element in this column.| Constructor and Description |
|---|
NormalizationPreprocessor(double[] min,
double[] max,
IgniteBiFunction<K,V,double[]> basePreprocessor)
Constructs a new instance of normalization preprocessor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
apply(K k,
V v)
Applies this preprocessor.
|
double[] |
getMax() |
double[] |
getMin() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenandThenpublic NormalizationPreprocessor(double[] min,
double[] max,
IgniteBiFunction<K,V,double[]> basePreprocessor)
min - Minimal values.max - Maximum values.basePreprocessor - Base preprocessor.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018