Examples of Gaussian


Examples of util.Gaussian

  }

  @Test
  public void testIsEmpty()
  {
    Gaussian g = new Gaussian();
   
    assert (g.isEmpty());
  }
View Full Code Here

Examples of util.Gaussian

  public void testScaleZScores()
  {
    double[] zscores = {0.1, 1.0, 1.5, 2.0, 2.5, 3.0};
    double scale = 100;
   
    Gaussian g = new Gaussian(zscores);
   
    for (int x=0; x < zscores.length; x++) zscores[x] *= scale;
   
    g.scaleZScores(scale);
   
    assert( Util.compareArraysByValue(g.getPDF(),zscores));
  }
View Full Code Here

Examples of util.Gaussian

  public void testGetMean()
  {
    double[] zscores = {0.1, 1.0, 1.5, 2.0, 2.5, 3.0};
    double mean = Util.arrayMean(zscores);
   
    Gaussian g = new Gaussian(zscores);
   
    assert( g.getMean() == mean);
  }
View Full Code Here

Examples of util.Gaussian

  public void testGetStandardDeviation()
  {
    double[] zscores = {0.1, 1.0, 1.5, 2.0, 2.5, 3.0};
    double stdev = Util.standardDeviation(zscores);
   
    Gaussian g = new Gaussian(zscores);
   
    assert( g.getStandardDeviation() == stdev);
  }
View Full Code Here
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.