rusEFI
The most advanced open source ECU
|
Functions | |
void | initHistogramsModule (void) |
int | histogramGetIndex (int64_t value) |
This internal method is only public so that we can test it. | |
void | initHistogram (histogram_s *h, const char *name) |
Reset histogram_s to orignal state. | |
void | hsAdd (histogram_s *h, int64_t value) |
int | hsReport (histogram_s *h, int *report) |
Prepare histogram report. | |
Variables | |
static float | confidence_bounds [] = { 0.5 - H_CONFIDENCE * 0.5, 0.5, 0.5 + H_CONFIDENCE * 0.5 } |
static int64_t bounds[BOUND_LENGTH] | CCM_OPTIONAL |
static int | small_bounds_index [SBI_SIZE] |
static int | initialized = FALSE |
int histogramGetIndex | ( | int64_t | value | ) |
This internal method is only public so that we can test it.
Definition at line 66 of file histogram.cpp.
Referenced by hsAdd().
void hsAdd | ( | histogram_s * | h, |
int64_t | value | ||
) |
@breif Add a new value into histogram_s
Definition at line 102 of file histogram.cpp.
int hsReport | ( | histogram_s * | h, |
int * | report | ||
) |
Prepare histogram report.
Definition at line 116 of file histogram.cpp.
Referenced by printHistogram().
void initHistogram | ( | histogram_s * | h, |
const char * | name | ||
) |
Reset histogram_s to orignal state.
Definition at line 89 of file histogram.cpp.
Referenced by initWaveChart().
void initHistogramsModule | ( | void | ) |
@breif Internal histogram data structure
Definition at line 44 of file histogram.cpp.
Referenced by initHardwareNoConfig().
|
static |
magic curve lookup table
Definition at line 33 of file histogram.cpp.
|
static |
Definition at line 28 of file histogram.cpp.
Referenced by hsReport().
|
static |
Definition at line 39 of file histogram.cpp.
Referenced by configureHellenCanTerminator(), histogramGetIndex(), and initHistogramsModule().
|
static |
just an optimization - faster lookup for small values
Definition at line 37 of file histogram.cpp.
Referenced by histogramGetIndex(), and initHistogramsModule().