6#include "../../namespaces.h"
13
14
15
16
17
22 return (amount / total) * 100.0;
26
27
28
29
33 return (100.0 /
static_cast<
double>(cardinality));
37
38
39
40
41
43 assert(probability >= 0.0);
44 assert(probability <= 1.0);
46 return probability * 100.0;
double percent_of(double amount, double total)
Returns the percentage of \amount over total.
double uniform_probability(std::size_t cardinality)
Given the cardinality of a set, returns the percentage probability that applied to every element of t...
double probability_to_percentage(double probability)
Returns a percentage probability that is equal to probability.
#define QDOC_CATCH_GENERATORS_UTILITIES_ABSOLUTE_NAMESPACE