Empirical
|
Go to the source code of this file.
Namespaces | |
emp | |
If we are in emscripten, make sure to include the header. | |
Functions | |
template<typename CONTAINER > | |
double | emp::Entropy (const CONTAINER &weights) |
Convert a vector of weights to probabilities and return the entropy of the system. More... | |
template<typename CONTAINER , typename WEIGHT_FUN > | |
double | emp::Entropy (const CONTAINER &objs, WEIGHT_FUN fun, double total=0.0) |
constexpr double | emp::Entropy2 (const double p) |
Calculate the entropy when their are two possibile states based on one state's probability. More... | |
template<typename CONTAINER , typename CAT_FUN_X , typename CAT_FUN_Y , typename WEIGHT_FUN > | |
double | emp::Entropy (const CONTAINER &objs, CAT_FUN_X funX, CAT_FUN_Y funY, WEIGHT_FUN funW) |