RandomVariables
Class MeanAndVarianceTest

java.lang.Object
  extended byRandomVariables.MeanAndVarianceTest

public class MeanAndVarianceTest
extends java.lang.Object

This class provides a static method to test the analytic mean and variance of a random variable against the Monte Carlo mean and variance over a sample of size N. This is used the main methods of each random variable as a basic test that things are in order.


Constructor Summary
MeanAndVarianceTest()
           
 
Method Summary
static void test(RandomVariable X, int N)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeanAndVarianceTest

public MeanAndVarianceTest()
Method Detail

test

public static void test(RandomVariable X,
                        int N)
Parameters:
X - the randoim variable being tested
N - size of Monte Carlo sample