#include <bsta_int_histogram_1d.h>
Public Member Functions | |
bsta_int_histogram_1d (const unsigned int bins) | |
~bsta_int_histogram_1d () | |
unsigned int | get_nbins () const |
unsigned int | get_min_bin () |
min,max of total range. | |
unsigned int | get_max_bin () |
unsigned long int | get_area () |
Get total area under the histogram = total counts in histogram. | |
long int | get_count (unsigned int bin) |
Get the count in a given bin. | |
void | set_count (const unsigned int bin, const long int val) |
Set the count for a given bin. | |
unsigned long int | get_max_val (unsigned int &imax) |
void | trim (float low_fract, float high_fract) |
void | zero_low (unsigned n) |
void | zero_high (unsigned n) |
void | parzen (const float sigma) |
Smooth the histogram with a Parzen window of sigma. | |
bool | find_peaks (float perct, int &n_peaks, vcl_vector< unsigned int > &peaks) |
Private Attributes | |
unsigned int | nbins_ |
vcl_vector< long int > | counts_ |
Definition at line 34 of file bsta_int_histogram_1d.h.
bsta_int_histogram_1d::bsta_int_histogram_1d | ( | const unsigned int | bins | ) |
Definition at line 10 of file bsta_int_histogram_1d.cxx.
bsta_int_histogram_1d::~bsta_int_histogram_1d | ( | ) |
Definition at line 17 of file bsta_int_histogram_1d.cxx.
bool bsta_int_histogram_1d::find_peaks | ( | float | perct, |
int & | n_peaks, | ||
vcl_vector< unsigned int > & | peaks | ||
) |
Definition at line 152 of file bsta_int_histogram_1d.cxx.
unsigned long int bsta_int_histogram_1d::get_area | ( | ) |
Get total area under the histogram = total counts in histogram.
Definition at line 41 of file bsta_int_histogram_1d.cxx.
long int bsta_int_histogram_1d::get_count | ( | unsigned int | bin | ) |
Get the count in a given bin.
get the count in a given bin.
Definition at line 50 of file bsta_int_histogram_1d.cxx.
unsigned int bsta_int_histogram_1d::get_max_bin | ( | ) |
Definition at line 32 of file bsta_int_histogram_1d.cxx.
unsigned long int bsta_int_histogram_1d::get_max_val | ( | unsigned int & | imax | ) |
Definition at line 65 of file bsta_int_histogram_1d.cxx.
unsigned int bsta_int_histogram_1d::get_min_bin | ( | ) |
min,max of total range.
Definition at line 22 of file bsta_int_histogram_1d.cxx.
unsigned int bsta_int_histogram_1d::get_nbins | ( | ) | const [inline] |
Definition at line 54 of file bsta_int_histogram_1d.h.
void bsta_int_histogram_1d::parzen | ( | const float | sigma | ) |
Smooth the histogram with a Parzen window of sigma.
Definition at line 137 of file bsta_int_histogram_1d.cxx.
void bsta_int_histogram_1d::set_count | ( | const unsigned int | bin, |
const long int | val | ||
) |
Set the count for a given bin.
set the count for a given bin.
Definition at line 59 of file bsta_int_histogram_1d.cxx.
void bsta_int_histogram_1d::trim | ( | float | low_fract, |
float | high_fract | ||
) |
Definition at line 78 of file bsta_int_histogram_1d.cxx.
void bsta_int_histogram_1d::zero_high | ( | unsigned | n | ) |
Definition at line 131 of file bsta_int_histogram_1d.cxx.
void bsta_int_histogram_1d::zero_low | ( | unsigned | n | ) |
Definition at line 124 of file bsta_int_histogram_1d.cxx.
vcl_vector<long int> bsta_int_histogram_1d::counts_ [private] |
Definition at line 38 of file bsta_int_histogram_1d.h.
unsigned int bsta_int_histogram_1d::nbins_ [private] |
Definition at line 37 of file bsta_int_histogram_1d.h.