Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
percentages.h File Reference

(ac01635f461bd9f211d89f6eea833d9d928fd113)

#include "../../namespaces.h"
#include <cassert>
+ Include dependency graph for percentages.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QDOC_CATCH_GENERATORS_UTILITIES_ABSOLUTE_NAMESPACE
 

Functions

double QDOC_CATCH_GENERATORS_UTILITIES_ABSOLUTE_NAMESPACE::percent_of (double amount, double total)
 Returns the percentage of \amount over total.
 
double QDOC_CATCH_GENERATORS_UTILITIES_ABSOLUTE_NAMESPACE::uniform_probability (std::size_t cardinality)
 Given the cardinality of a set, returns the percentage probability that applied to every element of the set generates a uniform distribution.
 
double QDOC_CATCH_GENERATORS_UTILITIES_ABSOLUTE_NAMESPACE::probability_to_percentage (double probability)
 Returns a percentage probability that is equal to probability.