Helpers for computing histograms and histogram bin edges. More...
Enumerations | |
| enum class | xt::histogram_algorithm { automatic , linspace , logspace , uniform } |
| Defines different algorithms to be used in "histogram_bin_edges". More... | |
Functions | |
| template<class R = double, class E1, class E2, class E3> | |
| auto | xt::histogram (E1 &&data, E2 &&bin_edges, E3 &&weights, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class R = double, class E1, class E2> | |
| auto | xt::histogram (E1 &&data, E2 &&bin_edges, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class R = double, class E1> | |
| auto | xt::histogram (E1 &&data, std::size_t bins=10, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class R = double, class E1, class E2> | |
| auto | xt::histogram (E1 &&data, std::size_t bins, E2 left, E2 right, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class R = double, class E1, class E2> | |
| auto | xt::histogram (E1 &&data, std::size_t bins, E2 &&weights, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class R = double, class E1, class E2, class E3> | |
| auto | xt::histogram (E1 &&data, std::size_t bins, E2 &&weights, E3 left, E3 right, bool density=false) |
| Compute the histogram of a set of data. | |
| template<class E1, class E2, class E3> | |
| auto | xt::histogram_bin_edges (E1 &&data, E2 &&weights, E3 left, E3 right, std::size_t bins=10, histogram_algorithm mode=histogram_algorithm::automatic) |
| Compute the bin-edges of a histogram of a set of data using different algorithms. | |
| template<class E1, class E2> | |
| auto | xt::histogram_bin_edges (E1 &&data, E2 &&weights, std::size_t bins=10, histogram_algorithm mode=histogram_algorithm::automatic) |
| Compute the bin-edges of a histogram of a set of data using different algorithms. | |
| template<class E1> | |
| auto | xt::histogram_bin_edges (E1 &&data, std::size_t bins=10, histogram_algorithm mode=histogram_algorithm::automatic) |
| Compute the bin-edges of a histogram of a set of data using different algorithms. | |
| template<class E1, class E2> | |
| auto | xt::histogram_bin_edges (E1 &&data, E2 left, E2 right, std::size_t bins=10, histogram_algorithm mode=histogram_algorithm::automatic) |
| Compute the bin-edges of a histogram of a set of data using different algorithms. | |
Helpers for computing histograms and histogram bin edges.
|
strong |
Defines different algorithms to be used in "histogram_bin_edges".
Definition at line 290 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bin_edges | The bin-edges. |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 173 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bin_edges | The bin-edges. It has to be 1-dimensional and monotonic. |
| weights | Weight factors corresponding to each data-point. |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 152 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bins | The number of bins. |
| weights | Weight factors corresponding to each data-point. |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 251 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bins | The number of bins. |
| left | The lower-most edge. |
| right | The upper-most edge. |
| weights | Weight factors corresponding to each data-point. |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 275 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bins | The number of bins. |
| left | The lower-most edge. |
| right | The upper-most edge. |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 225 of file xhistogram.hpp.
|
inline |
Compute the histogram of a set of data.
| data | The data. |
| bins | The number of bins. [default: 10] |
| density | If true the resulting integral is normalized to 1. [default: false] |
Definition at line 198 of file xhistogram.hpp.
|
inline |
Compute the bin-edges of a histogram of a set of data using different algorithms.
| data | The data. |
| weights | Weight factors corresponding to each data-point. |
| left | The lower-most edge. |
| right | The upper-most edge. |
| bins | The number of bins. [default: 10] |
| mode | The type of algorithm to use. [default: "auto"] |
Definition at line 311 of file xhistogram.hpp.
|
inline |
Compute the bin-edges of a histogram of a set of data using different algorithms.
| data | The data. |
| weights | Weight factors corresponding to each data-point. |
| bins | The number of bins. [default: 10] |
| mode | The type of algorithm to use. [default: "auto"] |
Definition at line 428 of file xhistogram.hpp.
|
inline |
Compute the bin-edges of a histogram of a set of data using different algorithms.
| data | The data. |
| left | The lower-most edge. |
| right | The upper-most edge. |
| bins | The number of bins. [default: 10] |
| mode | The type of algorithm to use. [default: "auto"] |
Definition at line 490 of file xhistogram.hpp.
|
inline |
Compute the bin-edges of a histogram of a set of data using different algorithms.
| data | The data. |
| bins | The number of bins. [default: 10] |
| mode | The type of algorithm to use. [default: "auto"] |
Definition at line 460 of file xhistogram.hpp.