|
forpy
2
|
Computes the Renyi entropy. More...
#include <renyientropy.h>
Public Member Functions | |
| RenyiEntropy (const float &alpha) | |
| ~RenyiEntropy () | |
| virtual float | operator() (const float *class_members_numbers, const size_t &n, const float &fsum) const |
| bool | operator== (const IEntropyFunction &rhs) const |
| float | get_alpha () const |
Public Member Functions inherited from forpy::IEntropyFunction | |
| virtual | ~IEntropyFunction () |
| virtual float | operator() (const std::vector< float > &class_members_numbers, const float &fsum) const |
| The interface function that must be implemented. More... | |
| virtual float | operator() (const std::vector< float > &class_members_numbers) const |
| Classical entropy calculation function. More... | |
Private Member Functions | |
| RenyiEntropy () | |
| DON'T USE. Non-initializing constructor for serialization purposes. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const uint &) |
| DISALLOW_COPY_AND_ASSIGN (RenyiEntropy) | |
Private Attributes | |
| float | q |
| std::unique_ptr< ShannonEntropy > | shannon_entropy |
| std::unique_ptr< InducedEntropy > | induced_p |
| std::unique_ptr< ClassificationError > | classification_error |
Friends | |
| class | cereal::access |
| std::ostream & | operator<< (std::ostream &stream, const RenyiEntropy &self) |
Additional Inherited Members | |
Protected Member Functions inherited from forpy::IEntropyFunction | |
| IEntropyFunction () | |
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.
|
explicit |
|
inline |
Definition at line 37 of file renyientropy.h.
|
inlineprivate |
DON'T USE. Non-initializing constructor for serialization purposes.
Definition at line 89 of file renyientropy.h.
|
private |
| float forpy::RenyiEntropy::get_alpha | ( | ) | const |
Returns the alpha value set in the constructor.
|
inlinevirtual |
Reimplemented from forpy::IEntropyFunction.
Definition at line 39 of file renyientropy.h.
|
virtual |
Deep equality comparison.
Reimplemented from forpy::IEntropyFunction.
|
inlineprivate |
Definition at line 93 of file renyientropy.h.
|
friend |
Definition at line 89 of file renyientropy.h.
|
friend |
Definition at line 76 of file renyientropy.h.
|
private |
Definition at line 102 of file renyientropy.h.
|
private |
Definition at line 101 of file renyientropy.h.
|
private |
Definition at line 97 of file renyientropy.h.
|
private |
Definition at line 100 of file renyientropy.h.