Home
last modified time | relevance | path

Searched refs:nextReal (Results 1 – 13 of 13) sorted by relevance

/dports/finance/quantlib/QuantLib-1.20/ql/math/optimization/
H A Ddifferentialevolution.cpp144 jitter[jitterIter] = rng_.nextReal(); in calculateNextGeneration()
181 * rng_.nextReal() + configuration().stepsizeWeight; in calculateNextGeneration()
213 if (rng_.nextReal() < probFWeight) { in calculateNextGeneration()
242 if (rng_.nextReal() < 0.1){ in calculateNextGeneration()
288 + rng_.nextReal() in crossover()
293 + rng_.nextReal() in crossover()
316 if (rng_.nextReal() < mutationProbabilities[cmIter]) { in getCrossoverMask()
367 if (rng_.nextReal() < sizeWeightChangeProb) in adaptSizeWeights()
375 if (rng_.nextReal() < crossoverChangeProb) in adaptCrossover()
376 currGenCrossover_[coIter] = rng_.nextReal(); in adaptCrossover()
[all …]
/dports/finance/quantlib/QuantLib-1.20/ql/experimental/math/
H A Disotropicrandomwalk.hpp58 inline void nextReal(InputIterator first) const { in nextReal() function in QuantLib::IsotropicRandomWalk
63 Real phi = M_PI*rng_.nextReal(); in nextReal()
67 phi = M_PI*rng_.nextReal(); in nextReal()
73 if (rng_.nextReal() < 0.5) in nextReal()
H A Dzigguratrng.cpp229 if ((f_[i-1]-f_[i])*mt32_.nextReal() + f_[i] < std::exp(-0.5*x*x)) in nextGaussian()
233 p_*mt32_.nextReal()+q_); in nextGaussian()
H A Dparticleswarmoptimization.hpp195 Real val = c0_*(threshold_ + (1.0 - threshold_)*rng_.nextReal()); in setValues()
289 (*V_)[i] *= c0_*(0.5 + 0.5*rng_.nextReal()); in setValues()
294 flight_.nextReal<Real *>(&(*V_)[i][0]); in setValues()
H A Dparticleswarmoptimization.cpp138 v[j] += c1_*rng_.nextReal()*(pB[j] - x[j]) + c2_*rng_.nextReal()*(gB[j] - x[j]); in minimize()
H A Dfireflyalgorithm.hpp228 walkRandom_.nextReal(&xRW[0]); in walkImpl()
H A Dfireflyalgorithm.cpp137 if (j == rIndex || rng_.nextReal() <= crossover_) { in minimize()
/dports/finance/quantlib/QuantLib-1.20/ql/math/randomnumbers/
H A Dmt19937uniformrng.hpp54 sample_type next() const { return sample_type(nextReal(),1.0); } in next()
56 Real nextReal() const { in nextReal() function in QuantLib::MersenneTwisterUniformRng
/dports/graphics/nanort/nanort-b1feea8/examples/bidir_path_tracer/
H A Dmain.cc146 float nextReal() { return (float)nextInt() / (float)UINT_MAX; } in nextReal() function in __anonf1bb20810111::Random
734 float rand = rng.nextReal(); in sample()
741 float u1 = rng.nextReal(); in sample()
742 float u2 = rng.nextReal(); in sample()
812 float rand = rng.nextReal(); in sampleBRDF()
824 *wi = directionCosTheta(norm, rng.nextReal(), rng.nextReal(), pdf); in sampleBRDF()
1022 float px = x + (rng.nextReal() - 0.5f); in eyeSubpath()
1023 float py = y + (rng.nextReal() - 0.5f); in eyeSubpath()
1061 directionCosTheta(norm, rng.nextReal(), rng.nextReal(), &pdfDir); in lightSubpath()
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/src/geometry/ioMesh/iomel/
H A DStringInput.hpp165 std::ifstream& nextReal(); //!< find next real-valued string
H A DStringInput.cpp450 std::ifstream& StringInput::nextReal() { return notWord('r'); } in nextReal() function in xlifepp::iomel::StringInput
/dports/finance/quantlib/QuantLib-1.20/test-suite/
H A Dstats.cpp350 Real x = 2.0 * (mt.nextReal() - 0.5) * 1234.0; in testIncrementalStatistics()
351 Real w = mt.nextReal(); in testIncrementalStatistics()
H A Doptimizers.cpp425 fx += (i+1.0)*pow(x[i],4.0) + uniformRng_.nextReal(); in value()