Examples of MersenneTwister


Examples of org.apache.mahout.math.jet.random.engine.MersenneTwister

   * org.apache.mahout.math.jet.random.AbstractDistribution} are function objects, because they implement the proper
   * interfaces. Thus, if you are not happy with the default, just pass your favourite random generator to function
   * evaluating methods.
   */
  public static IntFunction random() {
    return new MersenneTwister(new Date());
  }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.engine.MersenneTwister

      return matrix;
    }

    RandomSamplingAssistant sampler =
        new RandomSamplingAssistant(n, size,
            new MersenneTwister());
    for (int i = 0; i < size; i++) {
      if (sampler.sampleNextElement()) {
        int row = i / columns;
        int column = i % columns;
        matrix.set(row, column, value);
View Full Code Here

Examples of org.apache.mahout.math.jet.random.engine.MersenneTwister

      return matrix;
    }

    RandomSamplingAssistant sampler =
        new RandomSamplingAssistant(n, size,
            new MersenneTwister());
    for (int i = size; --i >= 0;) {
      if (sampler.sampleNextElement()) {
        matrix.set(i, value);
      }
    }
View Full Code Here

Examples of org.jamesii.core.math.random.generators.mersennetwister.MersenneTwister

  private static final Double[][] PERF_DATA = new Double[][] {
      { 1., .5, 1.5, 1. }, { 2.5, 2., 1.5, 1. }, { 2.5, 3.5, 3., 1. } };

  @Override
  public void setUp() {
    ps = new StochSearchPortfolioSelector(100000, new MersenneTwister());
  }
View Full Code Here

Examples of tiled.util.MersenneTwister

    private final MersenneTwister mt;
    private double ratio = 0.5;

    public RandomBrush(Area shape) {
        super(shape);
        mt = new MersenneTwister(System.currentTimeMillis());
    }
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.