jchrest.tests
Class TestStm

java.lang.Object
  extended by jchrest.tests.TestStm

public class TestStm
extends java.lang.Object

Suite of tests to verify performance of the Chrest STM class. These tests are Process Tests as they directly test the performance of Chrest.


Constructor Summary
TestStm()
           
 
Method Summary
 void setup()
           
 void test1()
          First test, makes sure an empty LTM results in root node being placed in STM on trying to recognise a pattern.
 void test2()
          Second test, ensures that learning an item results in STM containing two nodes: the first is the new node, and the second is the root node.
 void test3()
          Third test, ensure that capacity of STM is respected.
 void test4()
          Fourth test, ensure that a new item, if repeated, is correctly placed into STM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestStm

public TestStm()
Method Detail

setup

public void setup()

test1

public void test1()
First test, makes sure an empty LTM results in root node being placed in STM on trying to recognise a pattern.


test2

public void test2()
Second test, ensures that learning an item results in STM containing two nodes: the first is the new node, and the second is the root node.


test3

public void test3()
Third test, ensure that capacity of STM is respected.


test4

public void test4()
Fourth test, ensure that a new item, if repeated, is correctly placed into STM.