bb.science
Class Bins.UnitTest

java.lang.Object
  extended by bb.science.Bins.UnitTest
Enclosing class:
Bins

public static class Bins.UnitTest
extends Object

See the Overview page of the project's javadocs for a general description of this unit test class.


Constructor Summary
Bins.UnitTest()
           
 
Method Summary
private  int lengthRandom(Random random)
           
 void test_all_shouldPass1()
          Tests a very simple case of a small data sample put into 2 bins, where the expected results are trivial to calculate.
 void test_all_shouldPass2()
          Tests the percent histogram example cited in the class javadocs.
 void test_all_shouldPass3()
          Tests many random scenarios by checking that Bins can at least be constructed without Exception.
 void test_whiteNoise()
           
private  double valueRandom(double base, Random random)
           
private  double[] valuesRandom(Random random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bins.UnitTest

public Bins.UnitTest()
Method Detail

test_all_shouldPass1

public void test_all_shouldPass1()
                          throws Exception
Tests a very simple case of a small data sample put into 2 bins, where the expected results are trivial to calculate.

Throws:
Exception

test_all_shouldPass2

public void test_all_shouldPass2()
                          throws Exception
Tests the percent histogram example cited in the class javadocs.

Throws:
Exception

test_all_shouldPass3

public void test_all_shouldPass3()
                          throws Exception
Tests many random scenarios by checking that Bins can at least be constructed without Exception.

Throws:
Exception

valuesRandom

private double[] valuesRandom(Random random)

lengthRandom

private int lengthRandom(Random random)

valueRandom

private double valueRandom(double base,
                           Random random)

test_whiteNoise

public void test_whiteNoise()
                     throws Exception
Throws:
Exception