public class SufficientBagStatistics extends java.lang.Object implements SufficientStatistics
| Constructor and Description |
|---|
SufficientBagStatistics(java.util.List<weka.core.Instance> allInstances,
java.util.HashMap<weka.core.Instance,Bag> instanceBags,
double instanceConstant)
Sets up the object initially by assigning all cases to the right subset.
|
| Modifier and Type | Method and Description |
|---|---|
double |
positiveCountLeft()
The number of positive cases on the left side.
|
double |
positiveCountRight()
The number of positive cases on the right side.
|
double |
totalCountLeft()
Number of cases on the left side.
|
double |
totalCountRight()
Number of cases on the right side.
|
void |
updateStats(weka.core.Instance i,
java.util.HashMap<weka.core.Instance,Bag> instanceBags)
Updates the sufficient statistics assuming a shift of instance i from the right of the split to the left
|
public SufficientBagStatistics(java.util.List<weka.core.Instance> allInstances,
java.util.HashMap<weka.core.Instance,Bag> instanceBags,
double instanceConstant)
public void updateStats(weka.core.Instance i,
java.util.HashMap<weka.core.Instance,Bag> instanceBags)
updateStats in interface SufficientStatisticspublic double positiveCountLeft()
positiveCountLeft in interface SufficientStatisticspublic double positiveCountRight()
positiveCountRight in interface SufficientStatisticspublic double totalCountLeft()
totalCountLeft in interface SufficientStatisticspublic double totalCountRight()
totalCountRight in interface SufficientStatistics