public class LeastSquaresDeviation extends java.lang.Object implements IImpurityFunction
Constructor and Description |
---|
LeastSquaresDeviation() |
Modifier and Type | Method and Description |
---|---|
double |
impurities(int[] patterns,
double cost)
It compute the impurity value associated
|
void |
setDataset(DoubleTransposedDataSet dataset)
It sets the datasets of patters
|
public void setDataset(DoubleTransposedDataSet dataset)
setDataset
in interface IImpurityFunction
dataset
- Complete data set of patternspublic double impurities(int[] patterns, double cost) throws java.lang.Exception
impurities
in interface IImpurityFunction
patterns
- index of patterns from dataset associated to node to evaluatecost
- Associated costjava.lang.Exception