public class Statistics
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
double |
getMax(int whichAttribute,
int whichClass)
It returns the maximum of the given attribute within the given class
|
double |
getMean(int whichAttribute,
int whichClass)
It returns the mean of the given attribute within the given class
|
double |
getMin(int whichAttribute,
int whichClass)
It returns the minimum of the given attribute within the given class
|
double |
getVariance(int whichAttribute,
int whichClass)
It returns the variance of the given attribute within the given class
|
void |
run(double[][] example,
int[] classOfExample,
int numberOfExamples,
int numberOfAttributes)
It computes the statistics for the given parameters
|
public void run(double[][] example, int[] classOfExample, int numberOfExamples, int numberOfAttributes)
example
- Examples normalized from the KEEL Data setclassOfExample
- Class of each normalized examplenumberOfExamples
- Number of examples in the data setnumberOfAttributes
- Number of attributespublic double getVariance(int whichAttribute, int whichClass)
whichAttribute
- index of the attributewhichClass
- index of the classpublic double getMean(int whichAttribute, int whichClass)
whichAttribute
- index of the attributewhichClass
- index of the classpublic double getMax(int whichAttribute, int whichClass)
whichAttribute
- index of the attributewhichClass
- index of the classpublic double getMin(int whichAttribute, int whichClass)
whichAttribute
- index of the attributewhichClass
- index of the class