A simple cumulated histogram.
More...
#include <histogram.h>
|
| | CumulatedHistogram (const Histogram &) |
| | Create a cumulated histogram.
|
| | CumulatedHistogram (int, double=0.0, double=1.0) |
| | Create a cumulated histogram.
|
| | CumulatedHistogram (int, double, double, const QVector< double > &) |
| | Create a cumulated histogram from a set.
|
| | CumulatedHistogram (int, const QVector< double > &) |
| | Create a cumulated histogram from a set.
|
|
| ~CumulatedHistogram () |
| | Empty.
|
| double | Interpolate (int index) const |
| | Interpolate the value for a point given its index.
|
| double | Interpolate (double percentage) const |
| | Interpolate the value for a point given its percentile.
|
|
Ia | Range () const |
| | Return the range of values of the histogram.
|
|
int | Value (int) const |
| | Return the value in a given bin.
|
|
int | GetSize () const |
| | Return the size of the histogram.
|
|
| int | Index (const double &) const |
| | Compute the entry of a given value.
|
| int | IndexUnit (const double &) const |
| | Compute the entry of a given unit value.
|
| | Histogram (int, double=0.0, double=1.0) |
| | Create a histogram.
|
| | Histogram (int, double, double, const QVector< double > &) |
| | Create a histogram from a set.
|
| | Histogram (int, const QVector< double > &) |
| | Create a histogram.
|
|
| ~Histogram () |
| | Empty.
|
| void | Insert (const double &) |
| | Add a value to the histogram.
|
| double | Select (const double &) const |
| | Compute the value in the histogram corresponding to a given percentage of the cumulated values.
|
|
int | Value (int) const |
| | Return the value in a given bin.
|
|
int | GetSize () const |
| | Return the size of the histogram.
|
|
Ia | Range () const |
| | Return the range of values of the histogram.
|
|
void | Draw (const QString &="Histogram") const |
| | Draw.
|
|
void | ExportPDF (const QString &="histogram.pdf") const |
| | Draw.
|
|
void | ExportPNG (const QString &="histogram.png") const |
| | Draw.
|
|
QImage | CreateImage (int=256, int=256) const |
| | Create a (small) image showing the histogram distribution.
|
|
int | MaxCount () const |
| | Compute the value of the highest bin.
|
|
int | TotalCount () const |
| | Compute total number of counts.
|
|
double | Interval () const |
| | Return the value in a given bin.
|
|
QVector< int > | v |
| | Counts.
|
|
double | b = 1.0 |
| | Interval.
|
A simple cumulated histogram.
- See also
- Histogram
◆ CumulatedHistogram() [1/4]
| CumulatedHistogram::CumulatedHistogram |
( |
const Histogram & | h | ) |
|
|
explicit |
Create a cumulated histogram.
- Parameters
-
◆ CumulatedHistogram() [2/4]
| CumulatedHistogram::CumulatedHistogram |
( |
int | size, |
|
|
double | a = 0.0, |
|
|
double | b = 1.0 ) |
|
explicit |
Create a cumulated histogram.
- Parameters
-
| a,b | Range. |
| size | Number of bins. |
◆ CumulatedHistogram() [3/4]
| CumulatedHistogram::CumulatedHistogram |
( |
int | size, |
|
|
double | a, |
|
|
double | b, |
|
|
const QVector< double > & | values ) |
|
explicit |
Create a cumulated histogram from a set.
- Parameters
-
| values | Set of values. |
| a,b | Range. |
| size | Number of bins. |
◆ CumulatedHistogram() [4/4]
| CumulatedHistogram::CumulatedHistogram |
( |
int | size, |
|
|
const QVector< double > & | values ) |
|
explicit |
Create a cumulated histogram from a set.
- Parameters
-
| values | Set of values. |
| size | Number of bins. |
◆ Interpolate() [1/2]
| double CumulatedHistogram::Interpolate |
( |
double | percentage | ) |
const |
Interpolate the value for a point given its percentile.
- Parameters
-
◆ Interpolate() [2/2]
| double CumulatedHistogram::Interpolate |
( |
int | index | ) |
const |
Interpolate the value for a point given its index.
- Parameters
-
◆ operator<<
Overloaded.
- Parameters
-
| s | Stream. |
| h | The cumulated histogram. |