MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / sample_test

Function sample_test

probability/geometric_dist.cpp:165–191  ·  view source on GitHub ↗

* @brief Tests the sampling method of the geometric distribution * @details Draws 1000000 random samples and estimates mean and variance * These should be close to the expected value and variance of the given * distribution to pass. * @param dist The distribution to test */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls 3

draw_sampleMethod · 0.80
expected_valueMethod · 0.80
varianceMethod · 0.45

Tested by

no test coverage detected