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 SufficientStatistics
public double positiveCountLeft()
positiveCountLeft
in interface SufficientStatistics
public double positiveCountRight()
positiveCountRight
in interface SufficientStatistics
public double totalCountLeft()
totalCountLeft
in interface SufficientStatistics
public double totalCountRight()
totalCountRight
in interface SufficientStatistics