Package weka.classifiers.trees.j48
Class Stats
java.lang.Object
weka.classifiers.trees.j48.Stats
- All Implemented Interfaces:
RevisionHandler
Class implementing a statistical routine needed by J48 to
compute its error estimate.
- Version:
- $Revision: 8034 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
addErrs
(double N, double e, float CF) Computes estimated extra error for given total number of instances and error using normal approximation to binomial distribution (and continuity correction).Returns the revision string.
-
Constructor Details
-
Stats
public Stats()
-
-
Method Details
-
addErrs
public static double addErrs(double N, double e, float CF) Computes estimated extra error for given total number of instances and error using normal approximation to binomial distribution (and continuity correction).- Parameters:
N
- number of instancese
- observed errorCF
- confidence value
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-