@@ -0,0 +1,1413 @@
+package baseCodeTest.math.distribution;%0A%0Aimport cern.colt.matrix.DoubleMatrix2D;%0Aimport cern.colt.matrix.impl.DenseDoubleMatrix2D;%0Aimport cern.jet.random.engine.DRand;%0Aimport cern.jet.random.engine.MersenneTwister;%0Aimport baseCode.math.distribution.Wishart;%0Aimport baseCode.util.RegressionTesting;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * %3Chr%3E%0A * %3Cp%3E%0A * Copyright (c) 2004 Columbia University%0A * %0A * @author pavlidis%0A * @version $Id$%0A */%0Apublic class TestWishart extends TestCase %7B%0A%0A   Wishart t1;%0A   Wishart t2;%0A   Wishart t3;%0A   Wishart t4;%0A   DoubleMatrix2D cov;%0A%0A   protected void setUp() throws Exception %7B%0A      cov = new DenseDoubleMatrix2D( new double%5B%5D%5B%5D %7B%0A            %7B%0A                  1, 2%0A            %7D, %7B%0A                  1, 2%0A            %7D%0A      %7D );%0A%0A      t1 = new Wishart( 5, cov, new MersenneTwister() );%0A      //t2 = new Wishart(2, 8, cov);%0A      // t3 = new Wishart(2, 20, cov);%0A      // t4 = new Wishart(8, 5, cov);%0A      super.setUp();%0A   %7D%0A%0A   public void testNextDoubleMatrix() %7B%0A      DoubleMatrix2D actualReturn = t1.nextDoubleMatrix();%0A      System.err.println(actualReturn);%0A      DoubleMatrix2D expectedReturn = new DenseDoubleMatrix2D( new double%5B%5D%5B%5D %7B%0A            %7B%0A                  1.426553, 4.848117%0A            %7D, %7B%0A                  4.848117, 16.9009%0A            %7D%0A      %7D );%0A      assertTrue( RegressionTesting.closeEnough( expectedReturn, actualReturn, 0.0001 ) );%0A   %7D%0A%0A%7D

test for wishart - needs to be fixed