Computes the Renyi entropy.
More...
#include <renyientropy.h>
Computes the Renyi entropy.
Works correctly up to a total sum of elements of numeric_limits<float>::max().
This is the Renyi entropy, as introduced by Alfred Renyi (see http://en.wikipedia.org/wiki/R%C3%A9nyi_entropy).
Definition at line 34 of file renyientropy.h.
◆ RenyiEntropy() [1/2]
forpy::RenyiEntropy::RenyiEntropy |
( |
const float & |
alpha | ) |
|
|
explicit |
◆ ~RenyiEntropy()
forpy::RenyiEntropy::~RenyiEntropy |
( |
| ) |
|
|
inline |
◆ RenyiEntropy() [2/2]
forpy::RenyiEntropy::RenyiEntropy |
( |
| ) |
|
|
inlineprivate |
DON'T USE. Non-initializing constructor for serialization purposes.
Definition at line 89 of file renyientropy.h.
◆ DISALLOW_COPY_AND_ASSIGN()
forpy::RenyiEntropy::DISALLOW_COPY_AND_ASSIGN |
( |
RenyiEntropy |
| ) |
|
|
private |
◆ get_alpha()
float forpy::RenyiEntropy::get_alpha |
( |
| ) |
const |
Returns the alpha value set in the constructor.
◆ operator()()
virtual float forpy::RenyiEntropy::operator() |
( |
const float * |
class_members_numbers, |
|
|
const size_t & |
n, |
|
|
const float & |
fsum |
|
) |
| const |
|
inlinevirtual |
◆ operator==()
◆ serialize()
template<class Archive >
void forpy::RenyiEntropy::serialize |
( |
Archive & |
ar, |
|
|
const uint & |
|
|
) |
| |
|
inlineprivate |
◆ cereal::access
friend class cereal::access |
|
friend |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const RenyiEntropy & |
self |
|
) |
| |
|
friend |
◆ classification_error
◆ induced_p
float forpy::RenyiEntropy::q |
|
private |
◆ shannon_entropy
The documentation for this class was generated from the following file: