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

Function ToRandReal1

util/random/common_ops.h:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6namespace NPrivate {
7 constexpr double ToRandReal1(const ui32 x) noexcept {
8 return x * (double)(1.0 / 4294967295.0);
9 }
10
11 constexpr double ToRandReal2(const ui32 x) noexcept {
12 return x * (double)(1.0 / 4294967296.0);

Callers 1

GenRandReal1Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected