Package org.uncommons.maths.random

Examples of org.uncommons.maths.random.GaussianGenerator


   * @param sd
   *          a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, random);
    return dist.nextValue();
  }
View Full Code Here


    }


    protected GaussianGenerator createValueGenerator(Random rng)
    {
        return new GaussianGenerator(mean, standardDeviation, rng);
    }
View Full Code Here

   * @param sd
   *          a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, RANDOM);
    return dist.nextValue();
  }
View Full Code Here

   * @param mean a double mean value
   * @param sd a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, random);
    return dist.nextValue();
  }
View Full Code Here

   * @param mean a double mean value
   * @param sd   a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, random);
    return dist.nextValue();
  }
View Full Code Here

        operators.add(new MovePolygonMutation(movePolygonControl.getNumberGenerator()));
        operators.add(new ListOperator<ColouredPolygon>(new RemoveVertexMutation(canvasSize,
                                                                                 removeVertexControl.getNumberGenerator())));
        operators.add(new ListOperator<ColouredPolygon>(new AdjustVertexMutation(canvasSize,
                                                                                 moveVertexControl.getNumberGenerator(),
                                                                                 new GaussianGenerator(0, 3, rng))));
        operators.add(new ListOperator<ColouredPolygon>(new AddVertexMutation(canvasSize,
                                                                              addVertexControl.getNumberGenerator())));
        operators.add(new ListOperator<ColouredPolygon>(new PolygonColourMutation(changeColourControl.getNumberGenerator(),
                                                                                  new GaussianGenerator(0, 20, rng))));
        operators.add(new AddPolygonMutation(addPolygonControl.getNumberGenerator(), factory, 50));
        return new EvolutionPipeline<List<ColouredPolygon>>(operators);
    }
View Full Code Here

   * @param sd
   *          a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, RANDOM);
    return dist.nextValue();
  }
View Full Code Here

   * @param sd
   *          a double standard deviation
   * @return a double sample
   */
  public static double rNorm(double mean, double sd) {
    GaussianGenerator dist = new GaussianGenerator(mean, sd, RANDOM);
    return dist.nextValue();
  }
View Full Code Here

TOP

Related Classes of org.uncommons.maths.random.GaussianGenerator

Copyright © 2018 www.massapicom. 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.