Class Art2aEuclidUtils
java.lang.Object
de.unijena.cheminf.clustering.art2a.Art2aEuclidUtils
Library of static, thread-safe (stateless) utility methods for ART-2a-Euclid clustering.
Note: No checks are performed.
Note: No checks are performed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleansetContrastEnhancedVector(float[] aDataVector, float[] aBufferVector, Utils.MinMaxValue[] aMinMaxComponents, float aThresholdForContrastEnhancement) Transforms original data vector into corresponding contrast enhanced unit vector (see code).
-
Constructor Details
-
Art2aEuclidUtils
protected Art2aEuclidUtils()Constructor
-
-
Method Details
-
setContrastEnhancedVector
protected static boolean setContrastEnhancedVector(float[] aDataVector, float[] aBufferVector, Utils.MinMaxValue[] aMinMaxComponents, float aThresholdForContrastEnhancement) Transforms original data vector into corresponding contrast enhanced unit vector (see code). Note: No checks are performed.- Parameters:
aDataVector- Data vector (IS NOT CHANGED)aBufferVector- Buffer vector for contrast enhanced unit vector derived from data vector (MUST ALREADY BE INSTANTIATED and is set within the method)aMinMaxComponents- Min-max components of original data matrixaThresholdForContrastEnhancement- Threshold for contrast enhancement- Returns:
- True: Scaled data vector has a length of zero, false: Otherwise
-