public class NBProbabilityLoader extends Object
| Constructor and Description | 
|---|
| NBProbabilityLoader() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static void | computeFromExamples(NBScriptClassifier classifier,
                   double[] pResult,
                   double[][] pCharacteristic,
                   double[][][] condPCharacteristic,
                   int exclude)Loads the 
    /**
 Computes the probabilities based on the characteristics of the set of examples | 
| protected static void | loadDefaults(NBScriptClassifier classifier,
            double[] pResult,
            double[][] pCharacteristic,
            double[][][] condPCharacteristic)Loads the probability arrays with values computed off line | 
protected static void loadDefaults(NBScriptClassifier classifier, double[] pResult, double[][] pCharacteristic, double[][][] condPCharacteristic)
classifier - Naive Bayes classifier to which the probabilities applypResult - array of baseline probabilities of each resultpCharacteristic - array of baseline probabilities of each characteristiccondPCharacteristic - conditional probabilities of each characteristicprotected static void computeFromExamples(NBScriptClassifier classifier, double[] pResult, double[][] pCharacteristic, double[][][] condPCharacteristic, int exclude)
classifier - Naive Bayes classifier to which the probabilities applypResult - array of baseline probabilities of each resultpCharacteristic - array of baseline probabilities of each characteristiccondPCharacteristic - conditional probabilities of each characteristicexclude - example case to exclude from the calculation