Class FStat
- java.lang.Object
-
- ai.libs.jaicore.ml.tsc.quality_measures.FStat
-
- All Implemented Interfaces:
IQualityMeasure,java.io.Serializable
public class FStat extends java.lang.Object implements IQualityMeasure
F-Stat quality measure performing a analysis of variance according to chapter 3.2 of the original paper. It analyzes the ratio of the variability between the group of instances within a class to the variability within the class groups.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FStat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleassessQuality(java.util.List<java.lang.Double> distances, int[] classValues)Computes a quality score based on the distances of each instance to the shapelet and the correspondingclassValues.
-
-
-
Method Detail
-
assessQuality
public double assessQuality(java.util.List<java.lang.Double> distances, int[] classValues)Computes a quality score based on the distances of each instance to the shapelet and the correspondingclassValues.- Specified by:
assessQualityin interfaceIQualityMeasure- Parameters:
distances- List of distances storing the distance of each instance to a shapeletclassValues- The class values of the instances- Returns:
- Returns the calculated quality score
-
-