#include <histogram-type.h>
Public Member Functions | |
| histogram_type () | |
| histogram_type (float8 left, float8 right, int c) | |
| void | init (float8 left, float8 right, int c) |
| int | bin (float8 val) |
| void | hit (float8 val) |
| void | normalize (int val) |
| void | normalize_autocorrelation_diff (int val) |
| void | strip () |
| int | valat (float8 v) |
| float8 | mean () |
| float8 | dev () |
| float8 | best_dist (histogram_type *a) |
| float8 | cor_dist (histogram_type *a) |
| void | halve () |
Public Attributes | |
| float8 | left |
| float8 | right |
| float8 | sum |
| float8 | scale |
| int | total |
| int | median |
| signed4 * | bins |
| int | count |
| histogram_type::histogram_type | ( | ) |
| float8 histogram_type::best_dist | ( | histogram_type * | a | ) |
References biased_best_abs_circular_distance(), bins, bpmdj_allocate, count, and i.
| int histogram_type::bin | ( | float8 | val | ) |
| float8 histogram_type::cor_dist | ( | histogram_type * | a | ) |
References bins, bpmdj_allocate, count, differentiate(), higher_power_of_two(), i, normalize_abs_max(), unbiased_abs_distance(), and unbiased_autocorrelation().
| float8 histogram_type::dev | ( | ) |
| void histogram_type::halve | ( | ) |
References bins, count, and i.
Referenced by SpectrumAnalyzer::fetchSpectrum_normal().
References assert(), bins, bpmdj_allocate, count, i, left, right, sum, and total.
Referenced by histogram_type().
| float8 histogram_type::mean | ( | ) |
Referenced by dev(), and SpectrumAnalyzer::fetchSpectrum_normal().
| void histogram_type::normalize | ( | int | val | ) |
References bins, count, i, median, and vector_mul_div().
| void histogram_type::normalize_autocorrelation_diff | ( | int | val | ) |
References bins, bpmdj_allocate, bpmdj_deallocate, count, differentiate(), find_abs_max(), higher_power_of_two(), i, normalize_abs_max(), normalize_abs_max< float8 >(), scale, and unbiased_autocorrelation().
Referenced by SpectrumAnalyzer::fetchSpectrum_normal().
| void histogram_type::strip | ( | ) |
References bins, bpmdj_allocate, bpmdj_deallocate, count, i, left, and right.
Referenced by SpectrumAnalyzer::fetchSpectrum_normal().
| int histogram_type::valat | ( | float8 | v | ) |
Referenced by SpectrumAnalyzer::fetchSpectrum_normal().
Referenced by bin(), dev(), histogram_type(), init(), and strip().
Referenced by histogram_type(), and normalize().
Referenced by bin(), dev(), histogram_type(), init(), and strip().
Referenced by histogram_type(), hit(), init(), and mean().
Referenced by histogram_type(), hit(), init(), and mean().
1.6.2