IMP
2.0.1
The Integrative Modeling Platform
|
#include <IMP/statistics/HistogramD.h>
Public Types | |
typedef Grid | CountGrid |
Public Member Functions | |
HistogramD (double voxel_size, const algebra::BoundingBoxD< D > &bb) | |
void | add (const algebra::VectorInputD< D > &x, double weight=1) |
algebra::BoundingBoxD< D > | get_bounding_box () const |
const CountGrid & | get_counts () const |
unsigned int | get_dimension () const |
HistogramD< D > | get_frequencies () const |
algebra::VectorD< D > | get_mean () const |
FloatPair | get_minimum_and_maximum () const |
HistogramD< D > | get_probability_distribution_function () const |
algebra::VectorD< D > | get_standard_deviation (const algebra::VectorInputD< D > &mean) const |
double | get_total_count () const |
Get the sum of all counts in the histogram. | |
void | show (std::ostream &out=std::cout) const |
Python only | |
void | show_histogram (HistogramD h, std::string xscale="linear", std::string yscale="linear", Functions curves=Functions()) |
Dynamically build a histogram embedded in D-dimensional space.
Definition at line 27 of file HistogramD.h.
void IMP::statistics::HistogramD< D, Grid >::add | ( | const algebra::VectorInputD< D > & | x, |
double | weight = 1 |
||
) |
Increase the count for the bin that holds a value that is in range for this histogram.
Definition at line 38 of file HistogramD.h.
HistogramD<D> IMP::statistics::HistogramD< D, Grid >::get_probability_distribution_function | ( | ) | const |
Get a histogram that has the pdf value as the value for the bin.
Definition at line 58 of file HistogramD.h.
|
related |
In python, you can use matplot lib, if installed, to show the contents of a histogram. At the moment, only 1D and 2D histograms are supported.
[in] | h | The histogram to show, the plot is sized to the histograms bounding box. |
[in] | xscale | Whether the xscale is "linear" or "log" |
[in] | yscale | Whether the yscale is "linear" or "log" |
[in] | curves | A list of python functions to plot on the histogram as curves. The functions should take one float and return a float. |