K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public final class BinarizationPreprocessor<K,V> extends Object implements Preprocessor<K,V>, DeployableObject
Constructor and Description |
---|
BinarizationPreprocessor(double threshold,
Preprocessor<K,V> basePreprocessor)
Constructs a new instance of Binarization preprocessor.
|
Modifier and Type | Method and Description |
---|---|
LabeledVector |
apply(K k,
V v)
Applies this preprocessor.
|
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
double |
getThreshold()
Get the threshold parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map
andThen
andThen
public BinarizationPreprocessor(double threshold, Preprocessor<K,V> basePreprocessor)
threshold
- Threshold value.basePreprocessor
- Base preprocessor.public LabeledVector apply(K k, V v)
apply
in interface BiFunction<K,V,LabeledVector>
k
- Key.v
- Value.public double getThreshold()
public List<Object> getDependencies()
getDependencies
in interface DeployableObject
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024