MCPcopy Create free account
hub / github.com/colmap/colmap / RandomGaussian

Function RandomGaussian

src/colmap/math/random.h:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105template <typename T>
106T RandomGaussian(const T mean, const T stddev) {
107 if (COLMAP_PREDICT_FALSE(PRNG == nullptr)) {
108 SetPRNGSeed();
109 }
110
111 std::normal_distribution<T> distribution(mean, stddev);
112 return distribution(*PRNG);
113}
114
115template <typename T>
116void Shuffle(const uint32_t num_to_shuffle, std::vector<T>* elems) {

Callers 2

TESTFunction · 0.85

Calls 1

SetPRNGSeedFunction · 0.85

Tested by 1

TESTFunction · 0.68