be.ac.ulb.mlg.utils.measure
Class Hellinger
java.lang.Object
be.ac.ulb.mlg.utils.measure.Hellinger
- All Implemented Interfaces:
- Measure
public class Hellinger
- extends Object
- implements Measure
Method Summary |
boolean |
hasNativeImplementation()
Know if the measure owns a native implementation |
double |
measure(double[] A,
double[] B,
boolean[] computable)
Compute the measure between two data vectors |
boolean |
requireDataTransformation()
Know if the measure need to transform input data (input data are copied to be preserved) |
void |
transform(double[][] data)
The transformation method called before measurement |
Hellinger
public Hellinger()
measure
public double measure(double[] A,
double[] B,
boolean[] computable)
- Description copied from interface:
Measure
- Compute the measure between two data vectors
- Specified by:
measure
in interface Measure
- Parameters:
A
- The first data vectorB
- The second data vectorcomputable
- Boolean vector set to true except for indexes they must be ignored during the measurement
- Returns:
- The measure between a and b
hasNativeImplementation
public boolean hasNativeImplementation()
- Description copied from interface:
Measure
- Know if the measure owns a native implementation
- Specified by:
hasNativeImplementation
in interface Measure
- Returns:
- True if the measure is also natively implemented
requireDataTransformation
public boolean requireDataTransformation()
- Description copied from interface:
Measure
- Know if the measure need to transform input data (input data are copied to be preserved)
- Specified by:
requireDataTransformation
in interface Measure
- Returns:
- True if the input data require some transformation
transform
public void transform(double[][] data)
- Description copied from interface:
Measure
- The transformation method called before measurement
- Specified by:
transform
in interface Measure
- Parameters:
data
- An input data vector to be measured