Examples of Well44497b


Examples of org.apache.commons.math.random.Well44497b

import dclong.stat.Combination;
import dclong.util.Timer;

public class TestSPTsImpl {
  public static void main(String[] args) throws IOException{
    RandomGenerator rg = new Well44497b(31);
    RandomDataImpl rng = new RandomDataImpl(rg);
//    int sizeOfEachDataSet = 16;
    int sizeOfEachDataSet = 26;
//    int sizeOfFirstGroup = 8;
    int sizeOfFirstGroup = 5;
View Full Code Here

Examples of org.apache.commons.math.random.Well44497b

import dclong.stat.Combination;
import dclong.util.Timer;

public class TestSPTsRunnable {
  public static void main(String[] args) throws IOException{
    RandomGenerator rg = new Well44497b(31);
    RandomDataImpl rng = new RandomDataImpl(rg);
//    int numberOfTests = 12625;
    int numberOfTests = 10000;
//    int sizeOfEachDataSet = 26;
    int sizeOfEachDataSet = 16;
View Full Code Here

Examples of org.apache.commons.math.random.Well44497b

import dclong.stat.Combination;
import dclong.util.Timer;

public class TestSPTsSimulation {
  public static void main(String[] args) throws IOException {
    RandomGenerator rg = new Well44497b(31);
    RandomDataImpl rng = new RandomDataImpl(rg);
    // warm up RNG to avoid overlap of the Table-2 job
    Timer timer = new Timer();
    int upperBound = Combination.choose(26, 5).intValue() - 1;
    for (int i = 0; i < 130000000; ++i) {
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

                                            double b,
                                            double sigma,
                                            double lo,
                                            double hi,
                                            long seed) {
        final RandomGenerator rng = new Well44497b(seed);
        slope = a;
        intercept = b;
        error = new NormalDistribution(rng, 0, sigma,
                                       NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
        x = new UniformRealDistribution(rng, lo, hi,
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

                                      double y,
                                      double radius,
                                      double xSigma,
                                      double ySigma,
                                      long seed) {
        final RandomGenerator rng = new Well44497b(seed);
        this.radius = radius;
        cX = new NormalDistribution(rng, x, xSigma,
                                    NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
        cY = new NormalDistribution(rng, y, ySigma,
                                    NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

                                      double y,
                                      double radius,
                                      double xSigma,
                                      double ySigma,
                                      long seed) {
        final RandomGenerator rng = new Well44497b(seed);
        this.radius = radius;
        cX = new NormalDistribution(rng, x, xSigma,
                                    NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
        cY = new NormalDistribution(rng, y, ySigma,
                                    NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

     * @param cityList List of cities to visit in a single travel.
     * @param numNeuronsPerCity Number of neurons per city.
     */
    public TravellingSalesmanSolver(City[] cityList,
                                    double numNeuronsPerCity) {
        this(cityList, numNeuronsPerCity, new Well44497b().nextLong());
    }
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

     * to the trainer.
     */
    public TravellingSalesmanSolver(City[] cityList,
                                    double numNeuronsPerCity,
                                    long seed) {
        random = new Well44497b(seed);

        // Make sure that each city will appear only once in the list.
        for (City city : cityList) {
            cities.add(city);
        }
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

                                            double b,
                                            double sigma,
                                            double lo,
                                            double hi,
                                            long seed) {
        final RandomGenerator rng = new Well44497b(seed);
        slope = a;
        intercept = b;
        error = new NormalDistribution(rng, 0, sigma,
                                       NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
        x = new UniformRealDistribution(rng, lo, hi,
View Full Code Here

Examples of org.apache.commons.math3.random.Well44497b

     * @param cityList List of cities to visit in a single travel.
     * @param numNeuronsPerCity Number of neurons per city.
     */
    public TravellingSalesmanSolver(City[] cityList,
                                    double numNeuronsPerCity) {
        this(cityList, numNeuronsPerCity, new Well44497b().nextLong());
    }
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.