/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/random/ |
H A D | RandomAdaptor.java | 47 this.randomGenerator = randomGenerator; in RandomAdaptor() 72 return randomGenerator.nextBoolean(); in nextBoolean() 85 randomGenerator.nextBytes(bytes); in nextBytes() 99 return randomGenerator.nextDouble(); in nextDouble() 113 return randomGenerator.nextFloat(); in nextFloat() 142 return randomGenerator.nextInt(); in nextInt() 158 return randomGenerator.nextInt(n); in nextInt() 172 return randomGenerator.nextLong(); in nextLong() 178 randomGenerator.setSeed(seed); in setSeed() 185 randomGenerator.setSeed(seed); in setSeed() [all …]
|
/dports/science/colt/colt/src/cern/jet/random/ |
H A D | Distributions.java | 137 u = randomGenerator.raw(); // U(0/1) in nextBurr2() 179 public static double nextCauchy(RandomEngine randomGenerator) { in nextCauchy() argument 180 return Math.tan(Math.PI*randomGenerator.raw()); in nextCauchy() 191 for (int i = 0; i < k; i++) prod *= randomGenerator.raw(); in nextErlang() 231 double u = randomGenerator.raw(); in nextGeometric() 261 public static double nextLaplace(RandomEngine randomGenerator) { in nextLaplace() argument 262 double u = randomGenerator.raw(); in nextLaplace() 274 double u = randomGenerator.raw(); in nextLogistic() 307 u=randomGenerator.raw(); in nextTriangular() 341 double u = randomGenerator.raw(); in nextZipfInt() [all …]
|
H A D | Beta.java | 70 setRandomGenerator(randomGenerator); in Beta() 226 if ((U = randomGenerator.raw() * p4) <= p1) { in b1prs() 232 V = Dl * (U = randomGenerator.raw()); in b1prs() 250 V = D * (U = randomGenerator.raw()); in b1prs() 264 W = randomGenerator.raw() * U; in b1prs() 273 W = randomGenerator.raw() * U; in b1prs() 347 if (b > 1.0) return(b1prs(a, b, randomGenerator)); in nextDouble() 355 if (b > 1.0) return(b01(a, b, randomGenerator)); in nextDouble() 356 if (b < 1.0) return(b00(a, b, randomGenerator)); in nextDouble() 364 if (b == 1.0) return(randomGenerator.raw()); in nextDouble() [all …]
|
H A D | AbstractDistribution.java | 47 protected RandomEngine randomGenerator; field in AbstractDistribution 74 …if (this.randomGenerator != null) copy.randomGenerator = (RandomEngine) this.randomGenerator.clone… in clone() 81 return randomGenerator; in getRandomGenerator() 104 protected void setRandomGenerator(RandomEngine randomGenerator) { in setRandomGenerator() argument 105 this.randomGenerator = randomGenerator; in setRandomGenerator()
|
H A D | Uniform.java | 38 public Uniform(double min, double max, RandomEngine randomGenerator) { in Uniform() argument 39 setRandomGenerator(randomGenerator); in Uniform() 45 public Uniform(RandomEngine randomGenerator) { in Uniform() argument 46 this(0,1,randomGenerator); in Uniform() 60 return randomGenerator.raw() > 0.5; in nextBoolean() 66 return min+(max-min)*randomGenerator.raw(); in nextDouble() 73 return from+(to-from)*randomGenerator.raw(); in nextDoubleFromTo() 93 return (int) ((long)from + (long)((1L + (long)to - (long)from)*randomGenerator.raw())); in nextIntFromTo() 211 public static void staticSetRandomEngine(RandomEngine randomGenerator) { in staticSetRandomEngine() argument 213 shared.setRandomGenerator(randomGenerator); in staticSetRandomEngine()
|
H A D | Zeta.java | 49 public Zeta(double ro, double pk, RandomEngine randomGenerator) { in Zeta() argument 50 setRandomGenerator(randomGenerator); in Zeta() 56 protected long generateZeta(double ro, double pk, RandomEngine randomGenerator) { in generateZeta() argument 112 u=randomGenerator.raw(); in generateZeta() 113 v=randomGenerator.raw(); in generateZeta() 127 return (int) generateZeta(ro, pk, randomGenerator); in nextInt() 155 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 157 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | Normal.java | 57 public Normal(double mean, double standardDeviation, RandomEngine randomGenerator) { in Normal() argument 58 setRandomGenerator(randomGenerator); in Normal() 85 x = 2.0*randomGenerator.raw() - 1.0; in nextDouble() 86 y = 2.0*randomGenerator.raw() - 1.0; in nextDouble() 105 protected void setRandomGenerator(RandomEngine randomGenerator) { in setRandomGenerator() argument 106 super.setRandomGenerator(randomGenerator); in setRandomGenerator() 140 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 142 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | HyperGeometric.java | 63 setRandomGenerator(randomGenerator); in HyperGeometric() 106 if ((U = randomGenerator.raw() - fm) <= 0.0) return(m); in hmdu() 203 Dk = (int)(dl * randomGenerator.raw()) + 1; in hprs() 227 Dk = (int)(dr * randomGenerator.raw()) + 1; in hprs() 243 Y = randomGenerator.raw(); in hprs() 280 return nextInt(N,s,n,this.randomGenerator); in nextInt() 336 ? hmdu(N, M_le_Nhalf, n_le_Nhalf, randomGenerator) in nextInt() 337 : hmdu(N, n_le_Nhalf, M_le_Nhalf, randomGenerator); in nextInt() 341 ? hprs(N, M_le_Nhalf, n_le_Nhalf, randomGenerator) in nextInt() 342 : hprs(N, n_le_Nhalf, M_le_Nhalf, randomGenerator); in nextInt() [all …]
|
H A D | VonMises.java | 47 public VonMises(double freedom, RandomEngine randomGenerator) { in VonMises() argument 48 setRandomGenerator(randomGenerator); in VonMises() 93 u = randomGenerator.raw(); // U(0/1) in nextDouble() 94 v = randomGenerator.raw(); // U(0/1) in nextDouble() 100 return (randomGenerator.raw() > 0.5)? Math.acos(w): -Math.acos(w); // Random sign // in nextDouble() 130 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 132 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | ChiSquare.java | 52 public ChiSquare(double freedom, RandomEngine randomGenerator) { in ChiSquare() argument 53 setRandomGenerator(randomGenerator); in ChiSquare() 97 u = randomGenerator.raw(); in nextDouble() 98 v = randomGenerator.raw() * 0.857763884960707; in nextDouble() 119 u = randomGenerator.raw(); in nextDouble() 120 v = randomGenerator.raw() * vd + vm; in nextDouble() 169 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 171 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | Gamma.java | 61 public Gamma(double alpha, double lambda, RandomEngine randomGenerator) { in Gamma() argument 62 setRandomGenerator(randomGenerator); in Gamma() 127 p = b * randomGenerator.raw(); in nextDouble() 130 if (Math.log(randomGenerator.raw()) <= -gds) return(gds/lambda); in nextDouble() 148 v1 = 2.0 * randomGenerator.raw() - 1.0; in nextDouble() 149 v2 = 2.0 * randomGenerator.raw() - 1.0; in nextDouble() 157 u = randomGenerator.raw(); // Step 3. Uniform random number in nextDouble() 197 e = -Math.log(randomGenerator.raw()); in nextDouble() 198 u = randomGenerator.raw(); in nextDouble() 268 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument [all …]
|
H A D | BreitWigner.java | 36 public BreitWigner(double mean, double gamma, double cut, RandomEngine randomGenerator) { in BreitWigner() argument 37 setRandomGenerator(randomGenerator); in BreitWigner() 55 rval = 2.0*randomGenerator.raw()-1.0; in nextDouble() 61 rval = 2.0*randomGenerator.raw()-1.0; in nextDouble() 95 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 97 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | ExponentialPower.java | 45 public ExponentialPower(double tau, RandomEngine randomGenerator) { in ExponentialPower() argument 46 setRandomGenerator(randomGenerator); in ExponentialPower() 71 u = randomGenerator.raw(); // U(0/1) in nextDouble() 74 v = randomGenerator.raw(); // U(0/1) in nextDouble() 122 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 124 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | Logarithmic.java | 44 public Logarithmic(double p, RandomEngine randomGenerator) { in Logarithmic() argument 45 setRandomGenerator(randomGenerator); in Logarithmic() 100 u=randomGenerator.raw(); in nextDouble() 114 u=randomGenerator.raw(); in nextDouble() 148 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 150 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | StudentT.java | 49 public StudentT(double freedom, RandomEngine randomGenerator) { in StudentT() argument 50 setRandomGenerator(randomGenerator); in StudentT() 85 u = 2.0 * randomGenerator.raw() - 1.0; in nextDouble() 86 v = 2.0 * randomGenerator.raw() - 1.0; in nextDouble() 130 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 132 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | PoissonSlow.java | 54 public PoissonSlow(double mean, RandomEngine randomGenerator) { in PoissonSlow() argument 55 setRandomGenerator(randomGenerator); in PoissonSlow() 98 product *= randomGenerator.raw(); in nextInt() 109 RandomEngine rand = this.randomGenerator; in nextInt() 133 product *= randomGenerator.raw(); in nextIntSlow() 174 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 176 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | BreitWignerMeanSquare.java | 33 public BreitWignerMeanSquare(double mean, double gamma, double cut, RandomEngine randomGenerator) { in BreitWignerMeanSquare() argument 34 super(mean,gamma,cut,randomGenerator); in BreitWignerMeanSquare() 35 this.uniform = new Uniform(randomGenerator); in BreitWignerMeanSquare() 45 if (this.uniform != null) copy.uniform = new Uniform(copy.randomGenerator); in clone() 83 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 85 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | Exponential.java | 34 public Exponential(double lambda, RandomEngine randomGenerator) { in Exponential() argument 35 setRandomGenerator(randomGenerator); in Exponential() 55 return - Math.log(randomGenerator.raw()) / lambda; in nextDouble() 88 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 90 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
H A D | NegativeBinomial.java | 46 public NegativeBinomial(int n, double p, RandomEngine randomGenerator) { in NegativeBinomial() argument 47 setRandomGenerator(randomGenerator); in NegativeBinomial() 49 this.gamma = new Gamma(n,1.0,randomGenerator); in NegativeBinomial() 50 this.poisson = new Poisson(0.0,randomGenerator); in NegativeBinomial() 147 private static void xstaticSetRandomGenerator(RandomEngine randomGenerator) { in xstaticSetRandomGenerator() argument 149 shared.setRandomGenerator(randomGenerator); in xstaticSetRandomGenerator()
|
/dports/science/colt/colt/src/cern/jet/random/sampling/ |
H A D | RandomSampler.java | 133 …if (randomGenerator==null) randomGenerator = cern.jet.random.AbstractDistribution.makeDefaultGener… in RandomSampler() 134 this.my_RandomGenerator=randomGenerator; in RandomSampler() 219 Vprime = Math.exp(Math.log(randomGenerator.raw())*ninv); in rejectMethodD() 231 U = randomGenerator.raw(); negSreal = -S; in rejectMethodD() 256 Vprime = Math.exp(Math.log(randomGenerator.raw())*ninv); in rejectMethodD() 314 …if (randomGenerator==null) randomGenerator = cern.jet.random.AbstractDistribution.makeDefaultGener… in sample() 357 V = randomGenerator.raw(); in sampleMethodA() 375 S = (long) (Math.round(Nreal) * randomGenerator.raw()); in sampleMethodA() 406 Vprime = Math.exp(Math.log(randomGenerator.raw())*ninv); in sampleMethodD() 418 U = randomGenerator.raw(); negSreal = -S; in sampleMethodD() [all …]
|
/dports/net/mpich2/mpich2-1.5/src/mpe2/src/slog2sdk/src/cern/jet/random/ |
H A D | AbstractDistribution.java | 47 protected RandomEngine randomGenerator; field in AbstractDistribution 74 …if (this.randomGenerator != null) copy.randomGenerator = (RandomEngine) this.randomGenerator.clone… in clone() 81 return randomGenerator; in getRandomGenerator() 104 protected void setRandomGenerator(RandomEngine randomGenerator) { in setRandomGenerator() argument 105 this.randomGenerator = randomGenerator; in setRandomGenerator()
|
H A D | Uniform.java | 38 public Uniform(double min, double max, RandomEngine randomGenerator) { in Uniform() argument 39 setRandomGenerator(randomGenerator); in Uniform() 45 public Uniform(RandomEngine randomGenerator) { in Uniform() argument 46 this(0,1,randomGenerator); in Uniform() 60 return randomGenerator.raw() > 0.5; in nextBoolean() 66 return min+(max-min)*randomGenerator.raw(); in nextDouble() 73 return from+(to-from)*randomGenerator.raw(); in nextDoubleFromTo() 93 return (int) ((long)from + (long)((1L + (long)to - (long)from)*randomGenerator.raw())); in nextIntFromTo() 211 public static void staticSetRandomEngine(RandomEngine randomGenerator) { in staticSetRandomEngine() argument 213 shared.setRandomGenerator(randomGenerator); in staticSetRandomEngine()
|
/dports/java/bouncycastle15/crypto-169/tls/src/main/java/org/bouncycastle/tls/crypto/impl/bc/ |
H A D | BcTlsNonceGenerator.java | 9 private final RandomGenerator randomGenerator; field in BcTlsNonceGenerator 11 BcTlsNonceGenerator(RandomGenerator randomGenerator) in BcTlsNonceGenerator() argument 13 this.randomGenerator = randomGenerator; in BcTlsNonceGenerator() 19 randomGenerator.nextBytes(nonce); in generateNonce()
|
/dports/www/elgg/elgg-3.3.23/vendor/hackzilla/password-generator/Generator/ |
H A D | AbstractPasswordGenerator.php | 12 private $randomGenerator; variable in Hackzilla\\PasswordGenerator\\Generator\\AbstractPasswordGenerator 170 * @param RandomGeneratorInterface $randomGenerator 174 public function setRandomGenerator(RandomGeneratorInterface $randomGenerator) argument 176 $this->randomGenerator = $randomGenerator; 192 if ($this->randomGenerator) { 193 return $this->randomGenerator->randomInteger($min, $max);
|
/dports/math/py-or-tools/or-tools-9.2/examples/java/ |
H A D | CapacitatedVehicleRoutingProblemWithTimeWindows.java | 80 private final Random randomGenerator = new Random(0xBEEF); 125 locations.add(Pair.of(randomGenerator.nextInt(xMax + 1), randomGenerator.nextInt(yMax + 1))); 126 orderDemands.add(randomGenerator.nextInt(demandMax + 1)); 127 int timeWindowStart = randomGenerator.nextInt(timeWindowMax + 1); 129 orderPenalties.add(randomGenerator.nextInt(penaltyMax - penaltyMin + 1) + penaltyMin); 152 locations.add(Pair.of(randomGenerator.nextInt(xMax + 1), randomGenerator.nextInt(yMax + 1))); 154 locations.add(Pair.of(randomGenerator.nextInt(xMax + 1), randomGenerator.nextInt(yMax + 1))); 156 vehicleCostCoefficients.add(randomGenerator.nextInt(costCoefficientMax) + 1);
|