~ubuntu-branches/ubuntu/oneiric/weka/oneiric

« back to all changes in this revision

Viewing changes to weka/classifiers/bayes/NaiveBayesSimple.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner, Soeren Sonnenburg, Torsten Werner
  • Date: 2008-08-10 21:27:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080810212705-tr8etpnkdx2ziktp
Tags: 3.5.8-1
[ Soeren Sonnenburg ]
* Bump Standards Version to 3.8.0.
* Remove references to non-free Java in debian/copyright.

[ Torsten Werner ]
* new upstream release
* Switch to openjdk-6.
* Move package to main.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import weka.core.Capabilities;
28
28
import weka.core.Instance;
29
29
import weka.core.Instances;
 
30
import weka.core.RevisionUtils;
30
31
import weka.core.TechnicalInformation;
31
32
import weka.core.TechnicalInformationHandler;
32
33
import weka.core.Utils;
70
71
 <!-- options-end -->
71
72
 *
72
73
 * @author Eibe Frank (eibe@cs.waikato.ac.nz)
73
 
 * @version $Revision: 1.19 $ 
 
74
 * @version $Revision: 1.20 $ 
74
75
*/
75
76
public class NaiveBayesSimple 
76
77
  extends Classifier
407
408
    return (1 / (NORM_CONST * stdDev)) 
408
409
      * Math.exp(-(diff * diff / (2 * stdDev * stdDev)));
409
410
  }
 
411
  
 
412
  /**
 
413
   * Returns the revision string.
 
414
   * 
 
415
   * @return            the revision
 
416
   */
 
417
  public String getRevision() {
 
418
    return RevisionUtils.extract("$Revision: 1.20 $");
 
419
  }
410
420
 
411
421
  /**
412
422
   * Main method for testing this class.