Examples of UniformDistribution


Examples of org.jamesii.core.math.random.distributions.UniformDistribution

  /**
   * Uses uniform distributions with degree [1,10], labels [0,1].
   */
  public RandomGraphGenerator() {
    UniformDistribution dis =
        new UniformDistribution(SimSystem.getRNGGenerator().getNextRNG());
    dis.setLowerBorder(1d);
    dis.setUpperBorder(10d);
    degDistri = dis;
    nlDistri = dis.getSimilar(dis.getRandom());
    elDistri = dis.getSimilar(dis.getRandom());
  }
View Full Code Here

Examples of org.jamesii.core.math.random.distributions.UniformDistribution

    }
  }

  private void populatePool(int numOfIndividuals,
      AbstractIndividualFactory indFactory) {
    UniformDistribution portfolioSize =
        new UniformDistribution(rng, problem.getMinSize(),
            problem.getMaxSize() + 1);
    individuals = new IIndividual[numOfIndividuals];
    for (int i = 0; i < numOfIndividuals; i++) {
      individuals[i] =
          indFactory.createRandomIndividual(rng,
              problem.getPerformanceData()[0].performances.length,
              (int) portfolioSize.getRandomNumber());
    }
  }
View Full Code Here

Examples of org.renjin.stats.internals.distributions.UniformDistribution

    return q(new GammaDistributionImpl(shape, scale), p, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double dunif(@Recycle double x, @Recycle double min, @Recycle double max, boolean log) {
    double d = new UniformDistribution(min, max).density(x);
    if (log) {
      d = Math.log(d);
    }
    return d;
  }
View Full Code Here

Examples of org.renjin.stats.internals.distributions.UniformDistribution

    return d;
  }

  @DataParallel @Internal
  public static double punif(@Recycle double q, @Recycle double min, @Recycle double max, boolean lowerTail, boolean logP) {
    return p(new UniformDistribution(min, max), q, lowerTail, logP);
  }
View Full Code Here

Examples of org.renjin.stats.internals.distributions.UniformDistribution

    return p(new UniformDistribution(min, max), q, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double qunif(@Recycle double p, @Recycle double min, @Recycle double max, boolean lowerTail, boolean logP) {
    return q(new UniformDistribution(min, max), p, lowerTail, logP);
  }
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.