|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulb.mlg.utils.measure.JensenShannon
public class JensenShannon
Field Summary |
---|
Fields inherited from interface be.ac.ulb.mlg.utils.Measure |
---|
ERROR_VALUE |
Constructor Summary | |
---|---|
JensenShannon()
TODO |
|
JensenShannon(double pseudoCount)
TODO |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JensenShannon(double pseudoCount)
public JensenShannon()
Method Detail |
---|
public double measure(double[] A, double[] B, boolean[] computable)
Measure
measure
in interface Measure
A
- The first data vectorB
- The second data vectorcomputable
- Boolean vector set to true except for indexes they must be ignored during the measurement
public boolean hasNativeImplementation()
Measure
hasNativeImplementation
in interface Measure
public boolean requireDataTransformation()
Measure
requireDataTransformation
in interface Measure
public void transform(double[][] data)
Measure
transform
in interface Measure
data
- An input data vector to be measured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |