| 3884 | */ |
| 3885 | |
| 3886 | void 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 | |
| 3897 | void validate_probabilities(qreal* probs, int numProbs, const char* caller) { |
| 3898 |
no test coverage detected