This file will hold the definition of the histogram and stats data structures.
It also contains prototypes for procedures which operate on those data structures.
XXX: The following stats members are never used, or set in this code. stats->robustN50 stats->clippedNvalues stats->binsize
Definition in file psStats.h.
#include "psVector.h"
Include dependency graph for psStats.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | psStats |
| This is the generic statistics structure. More... | |
| struct | psHistogram |
| The basic histogram structure which contains bounds and bins. More... | |
Enumerations | |
| enum | psStatsOptions { PS_STAT_SAMPLE_MEAN = 0x000001, PS_STAT_SAMPLE_MEDIAN = 0x000002, PS_STAT_SAMPLE_STDEV = 0x000004, PS_STAT_SAMPLE_QUARTILE = 0x000008, PS_STAT_ROBUST_MEDIAN = 0x000010, PS_STAT_ROBUST_STDEV = 0x000020, PS_STAT_ROBUST_QUARTILE = 0x000040, PS_STAT_FITTED_MEAN = 0x000080, PS_STAT_FITTED_STDEV = 0x000100, PS_STAT_CLIPPED_MEAN = 0x000200, PS_STAT_CLIPPED_STDEV = 0x000400, PS_STAT_MAX = 0x000800, PS_STAT_MIN = 0x001000, PS_STAT_USE_RANGE = 0x002000, PS_STAT_USE_BINSIZE = 0x004000 } |
| enumeration of statistical calculation options More... | |
Functions | |
| psStats * | psVectorStats (psStats *stats, const psVector *in, const psVector *errors, const psVector *mask, psMaskType maskVal) |
| Performs statistical calculations on a vector. | |
| psStats * | psStatsAlloc (psStatsOptions options) |
| Allocator of the psStats structure. | |
| bool | psMemCheckStats (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psHistogram * | psHistogramAlloc (float lower, float upper, int n) |
| Allocator for psHistogram where the bounds of the bins are implicitly specified through simply specifying an upper and lower limit along with the size of the bins. | |
| bool | psMemCheckHistogram (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psHistogram * | psHistogramAllocGeneric (const psVector *bounds) |
| Allocator for psHistogram where the bounds of the bins are explicitly specified. | |
| psHistogram * | psVectorHistogram (psHistogram *out, const psVector *values, const psVector *errors, const psVector *mask, psMaskType maskVal) |
| Calculate a histogram. | |
| psBool | p_psGetStatValue (const psStats *stats, psF64 *value) |
| Extracts the statistic value specified by stats->options. | |
1.4.4