org.apache.commons.math3.random
Class StableRandomGeneratorTest

java.lang.Object
  extended by org.apache.commons.math3.random.StableRandomGeneratorTest

public class StableRandomGeneratorTest
extends Object

The class StableRandomGeneratorTest contains tests for the class StableRandomGenerator

Version:
$Revision: 1244107 $

Constructor Summary
StableRandomGeneratorTest()
           
 
Method Summary
 void testAlphaRangeAboveTwo()
           
 void testAlphaRangeBelowZero()
          Input parameter range tests
 void testBetaRangeAboveOne()
           
 void testBetaRangeBelowMinusOne()
           
 void testCauchyCase()
          If alpha = 1, than it must be Cauchy distribution
 void testGaussianCase()
          If alpha = 2, than it must be Gaussian distribution
 void testNextDouble()
          Run the double nextDouble() method test Due to leptokurtic property the acceptance range is widened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StableRandomGeneratorTest

public StableRandomGeneratorTest()
Method Detail

testNextDouble

public void testNextDouble()
Run the double nextDouble() method test Due to leptokurtic property the acceptance range is widened. TODO: verify that tolerance this wide is really OK


testGaussianCase

public void testGaussianCase()
If alpha = 2, than it must be Gaussian distribution


testCauchyCase

public void testCauchyCase()
If alpha = 1, than it must be Cauchy distribution


testAlphaRangeBelowZero

public void testAlphaRangeBelowZero()
Input parameter range tests


testAlphaRangeAboveTwo

public void testAlphaRangeAboveTwo()

testBetaRangeBelowMinusOne

public void testBetaRangeBelowMinusOne()

testBetaRangeAboveOne

public void testBetaRangeAboveOne()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.