MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validate_probability

Function validate_probability

quest/src/core/validation.cpp:3886–3895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3884 */
3885
3886void validate_probability(qreal prob, const char* caller) {
3887
3888 /// @todo report 'prob' once validation reporting can handle floats
3889
3890 /// @todo
3891 /// should we permit -eps <= prob <= 1+eps so that this validation
3892 /// can skipped by disabled only numerical validation?
3893
3894 assertThat(prob >= 0 && prob <= 1, report::INVALID_PROB, caller);
3895}
3896
3897void validate_probabilities(qreal* probs, int numProbs, const char* caller) {
3898

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected