Class TestNaiveBayes

  • All Implemented Interfaces:
    junit.framework.Test

    public class TestNaiveBayes
    extends junit.framework.TestCase
    • Constructor Summary

      Constructors 
      Constructor Description
      TestNaiveBayes​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      protected void setUp()  
      void testEmptyStringBug()  
      void testIncrementallyTrained()  
      void testIncrementallyTrainedGrowingAlphabets()  
      void testNonTrained()  
      void testRandomTrained()  
      void testStringTrained()  
      • Methods inherited from class junit.framework.TestCase

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestNaiveBayes

        public TestNaiveBayes​(java.lang.String name)
    • Method Detail

      • testNonTrained

        public void testNonTrained()
      • testStringTrained

        public void testStringTrained()
      • testRandomTrained

        public void testRandomTrained()
      • testIncrementallyTrainedGrowingAlphabets

        public void testIncrementallyTrainedGrowingAlphabets()
      • testIncrementallyTrained

        public void testIncrementallyTrained()
      • testEmptyStringBug

        public void testEmptyStringBug()
      • setUp

        protected void setUp()
        Overrides:
        setUp in class junit.framework.TestCase
      • main

        public static void main​(java.lang.String[] args)