public class SplitCandidate extends java.lang.Object implements java.lang.Comparable<SplitCandidate>
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.Map<java.lang.String,WeightMass>> |
m_postSplitClassDistributions
list of class distributions resulting from a split - 2 entries in the outer
list for numeric splits and n for nominal splits
|
double |
m_splitMerit
The merit of the split
|
Split |
m_splitTest |
Constructor and Description |
---|
SplitCandidate(Split splitTest,
java.util.List<java.util.Map<java.lang.String,WeightMass>> postSplitDists,
double merit)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SplitCandidate comp) |
int |
numSplits()
Number of branches resulting from the split
|
public Split m_splitTest
public java.util.List<java.util.Map<java.lang.String,WeightMass>> m_postSplitClassDistributions
public double m_splitMerit
public SplitCandidate(Split splitTest, java.util.List<java.util.Map<java.lang.String,WeightMass>> postSplitDists, double merit)
splitTest
- the splitting testpostSplitDists
- the distributions resulting from the splitmerit
- the merit of the splitpublic int numSplits()
public int compareTo(SplitCandidate comp)
compareTo
in interface java.lang.Comparable<SplitCandidate>