public abstract class SplitMetric extends Object implements Serializable
| Constructor and Description |
|---|
SplitMetric() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
evaluateSplit(Map<String,WeightMass> preDist,
List<Map<String,WeightMass>> postDist)
Evaluate the merit of a split
|
abstract double |
getMetricRange(Map<String,WeightMass> preDist)
Get the range of the splitting metric
|
static double |
sum(Map<String,WeightMass> dist)
Utility method to return the sum of instance weight in a distribution
|
public static double sum(Map<String,WeightMass> dist)
dist - the distributionpublic abstract double evaluateSplit(Map<String,WeightMass> preDist, List<Map<String,WeightMass>> postDist)
preDist - the class distribution before the splitpostDist - the class distributions after the splitpublic abstract double getMetricRange(Map<String,WeightMass> preDist)
preDist - the pre-split class distributionCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.