MCPcopy Create free account
hub / github.com/catboost/catboost / GenRandReal1

Method GenRandReal1

util/random/common_ops.h:99–101  ·  view source on GitHub ↗

generates a random number on [0, 1]-real-interval */

Source from the content-addressed store, hash-verified

97
98 /* generates a random number on [0, 1]-real-interval */
99 inline double GenRandReal1() noexcept {
100 return ::NPrivate::ToRandReal1(Engine().GenRand());
101 }
102
103 /* generates a random number on [0, 1)-real-interval */
104 inline double GenRandReal2() noexcept {

Callers 15

FillWithRandomFloatsFunction · 0.80
Y_UNIT_TESTFunction · 0.80
CalcQueryDersMethod · 0.80
GenerateBayessianWeightFunction · 0.80
AddSimpleCtrsFunction · 0.80
AddTreeCtrsFunction · 0.80
AddNoiseMethod · 0.80
GetInstanceMethod · 0.80
SetSampledControlMethod · 0.80
GenSampleWeightsMethod · 0.80

Calls 3

ToRandReal1Function · 0.85
EngineEnum · 0.85
GenRandMethod · 0.45

Tested by 6

TestNdcgFunction · 0.64
TrainFloatCatboostModelFunction · 0.64
GenerateVectorFunction · 0.64
TestIdcgFunction · 0.64
TestDcgFunction · 0.64
TestNdcgFunction · 0.64