|
OpenNN
Open-source neural networks library
|
Frequency histogram with per-bin minimums, maximums, centers, and counts. More...
#include <statistics.h>
Public Member Functions | |
| Histogram (const Index=0) | |
| Constructs an empty histogram with the given number of bins. | |
| Histogram (const VectorR &, const VectorR &) | |
| Constructs a histogram from precomputed bin centers and frequencies. | |
| Histogram (const VectorR &, const VectorR &, const VectorR &, const VectorR &) | |
| Constructs a histogram from bin minimums, maximums, centers, and frequencies. | |
| Histogram (const VectorR &, Index) | |
| Builds a histogram of the data with the given number of equal-width bins. | |
| Histogram (const VectorR &) | |
| Builds a histogram of the data using a default bin count. | |
| Index | get_bins_number () const |
| Returns the number of bins in the histogram. | |
| Index | count_empty_bins () const |
| Returns the number of bins with zero frequency. | |
| Index | calculate_minimum_frequency () const |
| Returns the smallest bin frequency. | |
| Index | calculate_maximum_frequency () const |
| Returns the largest bin frequency. | |
| Index | calculate_most_populated_bin () const |
| Returns the index of the bin with the largest frequency. | |
| VectorR | calculate_minimal_centers () const |
| Returns the centers of all bins tied for the minimum frequency. | |
| VectorR | calculate_maximal_centers () const |
| Returns the centers of all bins tied for the maximum frequency. | |
| Index | calculate_bin (const float) const |
| Returns the bin index that contains the given value. | |
| Index | calculate_frequency (const float) const |
| Returns the frequency of the bin that contains the given value. | |
| void | save (const filesystem::path &) const |
| Saves the histogram (centers and frequencies) to a text file. | |
Public Attributes | |
| VectorR | minimums |
| VectorR | maximums |
| VectorR | centers |
| VectorR | frequencies |
Frequency histogram with per-bin minimums, maximums, centers, and counts.
| opennn::Histogram::Histogram | ( | const Index | = 0 | ) |
Constructs an empty histogram with the given number of bins.
Constructs a histogram from precomputed bin centers and frequencies.
| opennn::Histogram::Histogram | ( | const VectorR & | , |
| const VectorR & | , | ||
| const VectorR & | , | ||
| const VectorR & | ) |
Constructs a histogram from bin minimums, maximums, centers, and frequencies.
| opennn::Histogram::Histogram | ( | const VectorR & | , |
| Index | ) |
Builds a histogram of the data with the given number of equal-width bins.
| opennn::Histogram::Histogram | ( | const VectorR & | ) |
Builds a histogram of the data using a default bin count.
|
nodiscard |
Returns the bin index that contains the given value.
|
nodiscard |
Returns the frequency of the bin that contains the given value.
|
nodiscard |
Returns the centers of all bins tied for the maximum frequency.
|
nodiscard |
Returns the largest bin frequency.
|
nodiscard |
Returns the centers of all bins tied for the minimum frequency.
|
nodiscard |
Returns the smallest bin frequency.
|
nodiscard |
Returns the index of the bin with the largest frequency.
|
nodiscard |
Returns the number of bins with zero frequency.
|
nodiscard |
Returns the number of bins in the histogram.
| void opennn::Histogram::save | ( | const filesystem::path & | ) | const |
Saves the histogram (centers and frequencies) to a text file.
| VectorR opennn::Histogram::centers |
| VectorR opennn::Histogram::frequencies |
| VectorR opennn::Histogram::maximums |
| VectorR opennn::Histogram::minimums |