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.
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_MEAN = 0x000010, PS_STAT_ROBUST_MEDIAN = 0x000020, PS_STAT_ROBUST_MODE = 0x000040, PS_STAT_ROBUST_STDEV = 0x000080, PS_STAT_ROBUST_QUARTILE = 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. | |
| void | p_psNormalizeVectorRangeU8 (psVector *myData, psU8 low, psU8 high) |
| Normalize the range of a vector containing U8 values. | |
| void | p_psNormalizeVectorRangeU16 (psVector *myData, psU16 low, psU16 high) |
| Normalize the range of a vector containing U16 values. | |
| void | p_psNormalizeVectorRangeU32 (psVector *myData, psU32 low, psU32 high) |
| Normalize the range of a vector containing U32 values. | |
| void | p_psNormalizeVectorRangeU64 (psVector *myData, psU64 low, psU64 high) |
| Normalize the range of a vector containing U64 values. | |
| void | p_psNormalizeVectorRangeS8 (psVector *myData, psS8 low, psS8 high) |
| Normalize the range of a vector containing S8 values. | |
| void | p_psNormalizeVectorRangeS16 (psVector *myData, psS16 low, psS16 high) |
| Normalize the range of a vector containing S16 values. | |
| void | p_psNormalizeVectorRangeS32 (psVector *myData, psS32 low, psS32 high) |
| Normalize the range of a vector containing S32 values. | |
| void | p_psNormalizeVectorRangeS64 (psVector *myData, psS64 low, psS64 high) |
| Normalize the range of a vector containing S64 values. | |
| void | p_psNormalizeVectorRangeF32 (psVector *myData, psF32 low, psF32 high) |
| Normalize the range of a vector containing F32 values. | |
| void | p_psNormalizeVectorRangeF64 (psVector *myData, psF64 low, psF64 high) |
| Normalize the range of a vector containing F64 values. | |
1.4.2