Package DistLib

Source Code of DistLib.test

package DistLib;

import DistLib.normal;
import DistLib.uniform;

public class test
{
    public static void main( String[] argv )
    {
  System.err.println("Density at (0,0,1) " +
         normal.density( 0.0, 0.0, 1.0 ) );

  System.err.println("Cumulative Density at (0,0,1) " +
         normal.cumulative( 0.0, 0.0, 1.0 ) );

  System.err.println("Quantile at 0.5 " +
         normal.quantile( 0.5, 0.0, 1.0 ) );

  System.err.println("10 Random values from N(0, 1): ");

  uniform PRNG = new uniform();

  for(int i=0; i<10; i++)
      System.err.println( normal.random(0.0,1.0, PRNG) );

    }

}
TOP

Related Classes of DistLib.test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.