#include <math.h>
#include <stdarg.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | FMinSearch |
struct | tagHistogram |
struct | tagANOVAResultElement |
struct | tagANOVA |
Macros | |
#define | __EPS__ 1e-8 |
#define | MAX(a, b) ( (a) > (b) ? (a) : (b) ) |
#define | MIN(a, b) ( (a) < (b) ? (a) : (b) ) |
#define | MAX_DOUBLE 1.7976931348623157e+308 |
#define | MIN_DOUBLE 4.9e-300 |
Typedefs | |
typedef double(* | math_func )(double *x, void *args) |
typedef FMinSearch * | pFMinSearch |
typedef struct tagHistogram | Histogram |
typedef Histogram * | pHistogram |
typedef struct tagANOVAResultElement | ANOVAResultElement |
typedef ANOVAResultElement * | pANOVAResultElement |
typedef struct tagANOVA | ANOVA |
typedef ANOVA * | pANOVA |
Functions | |
int | __maxidx (double *data, int size) |
double | __max (double *data, int size) |
double | __min (double *data, int size) |
double | ipow (double val, int expo) |
double | unifrnd () |
double | gamma (double c) |
double | gammaln (double c) |
double | gammaincln (double x, double a) |
double | gammainc (double x, double a) |
double | beta (double alpha, double beta) |
double | betaln (double alpha, double beta) |
double | betainc (double x, double alpha, double beta) |
double | choose (double n, double r) |
double | chooseln (double n, double r) |
double | gampdf (double x, double alpha, double beta) |
double | gamcdf (double x, double alpha, double beta) |
double | betapdf (double x, double alpha, double beta) |
double | chi2pdf (double x, int df) |
double | chi2cdf (double x, int df) |
double | fpdf (double x, int df1, int df2) |
double | fcdf (double x, int df1, int df2) |
double | tpdf (double x, int df) |
double | tcdf (double x, int df) |
double | binopdf (int x, int n, double p) |
double | binocdf (int x, int n, double p) |
double | poisspdf (int x, double lambda) |
double | poisscdf (int x, double lambda) |
double | exppdf (double x, double mu) |
double | exprnd (double mu) |
double | reylpdf (double x, double b) |
double | normpdf (double x, double mu, double sigma) |
double | normrnd (double mu, double sigma) |
double | normcdf (double x, double mu, double sigma) |
double | norminv (double x, double mu, double sigma) |
double | mean (double *data, int size) |
double | variance (double *data, int size) |
double | summation (double *data, int size) |
double * | vector_fraction (double *data, int size, double denominator) |
int | comp_double (const void *elem1, const void *elem2) |
double | pvalue (double v, const double *conddist, int size) |
double | fminsearch (pFMinSearch pfm, double *X0) |
pFMinSearch | fminsearch_new () |
pFMinSearch | fminsearch_new_with_eq (math_func eq, int Xsize, void *args) |
void | fminsearch_set_equation (pFMinSearch pfm, math_func eq, int Xsize, void *args) |
void | fminsearch_free (pFMinSearch pfm) |
int | fminsearch_min (pFMinSearch pfm, double *X0) |
double * | fminsearch_get_minX (pFMinSearch pfm) |
double | fminsearch_get_minF (pFMinSearch pfm) |
pHistogram | histogram_new (double *data, int nsamples, int nbins) |
void | histogram_free (pHistogram phist) |
void | histogram_set_by_bin (pHistogram phist, double *data, int nsample, int nbins) |
void | histogram_set_by_unit (pHistogram phist, double *data, int nsample, double unit) |
void | histogram_set_sparse_data (pHistogram phist, double *data, int nsamples) |
int | histogram_get_count (pHistogram phist, double p) |
double | histogram_compare (pHistogram phist1, pHistogram phist2) |
void | histogram_print (pHistogram phist, FILE *fp) |
int | histogram_merge (pHistogram phist, pHistogram parg) |
double | histogram_check_fitness (pHistogram phist, double *args, double(*cdf)(double p, double *args)) |
double | histogram_get_prob (pHistogram phist, double p) |
pHistogram | histogram_load (char *file) |
void | histogram_set_with_preset_point (pHistogram phist, double *data, int nsamples, double *point, int nbins) |
pANOVA | anova_new (int nways, int *ngrps) |
void | anova (pANOVA panova,...) |
void | anova1_run (pANOVA panova) |
void | anova2_run (pANOVA panova) |
void | anovan_run (pANOVA panova, va_list ap) |
void | anova_free (pANOVA panova) |
void | anova_print (pANOVA panova, char **name) |
void | anova_print_data (pANOVA panova) |
double | cmp_paired_t_test (double *grp1, double *grp2, int size) |
double | cmp_two_indep_chi2test (double *grp1, double *grp2, int size) |
double | cmp_two_indep_t_test (double *grp1, int size1, double *grp2, int size2) |
#define __EPS__ 1e-8 |
#define MAX | ( | a, | |
b | |||
) | ( (a) > (b) ? (a) : (b) ) |
#define MAX_DOUBLE 1.7976931348623157e+308 |
#define MIN | ( | a, | |
b | |||
) | ( (a) < (b) ? (a) : (b) ) |
#define MIN_DOUBLE 4.9e-300 |
typedef struct tagANOVAResultElement ANOVAResultElement |
typedef struct tagHistogram Histogram |
typedef double(* math_func)(double *x, void *args) |
typedef ANOVAResultElement* pANOVAResultElement |
typedef FMinSearch* pFMinSearch |
typedef Histogram* pHistogram |
double __max | ( | double * | data, |
int | size | ||
) |
int __maxidx | ( | double * | data, |
int | size | ||
) |
double __min | ( | double * | data, |
int | size | ||
) |
void anova | ( | pANOVA | panova, |
... | |||
) |
void anova1_run | ( | pANOVA | panova | ) |
void anova2_run | ( | pANOVA | panova | ) |
void anova_free | ( | pANOVA | panova | ) |
pANOVA anova_new | ( | int | nways, |
int * | ngrps | ||
) |
void anova_print | ( | pANOVA | panova, |
char ** | name | ||
) |
void anova_print_data | ( | pANOVA | panova | ) |
void anovan_run | ( | pANOVA | panova, |
va_list | ap | ||
) |
double beta | ( | double | alpha, |
double | beta | ||
) |
double betainc | ( | double | x, |
double | alpha, | ||
double | beta | ||
) |
double betaln | ( | double | alpha, |
double | beta | ||
) |
double betapdf | ( | double | x, |
double | alpha, | ||
double | beta | ||
) |
double binocdf | ( | int | x, |
int | n, | ||
double | p | ||
) |
double binopdf | ( | int | x, |
int | n, | ||
double | p | ||
) |
double chi2cdf | ( | double | x, |
int | df | ||
) |
double chi2pdf | ( | double | x, |
int | df | ||
) |
double choose | ( | double | n, |
double | r | ||
) |
double chooseln | ( | double | n, |
double | r | ||
) |
double cmp_paired_t_test | ( | double * | grp1, |
double * | grp2, | ||
int | size | ||
) |
double cmp_two_indep_chi2test | ( | double * | grp1, |
double * | grp2, | ||
int | size | ||
) |
double cmp_two_indep_t_test | ( | double * | grp1, |
int | size1, | ||
double * | grp2, | ||
int | size2 | ||
) |
int comp_double | ( | const void * | elem1, |
const void * | elem2 | ||
) |
double exppdf | ( | double | x, |
double | mu | ||
) |
double exprnd | ( | double | mu | ) |
double fcdf | ( | double | x, |
int | df1, | ||
int | df2 | ||
) |
double fminsearch | ( | pFMinSearch | pfm, |
double * | X0 | ||
) |
void fminsearch_free | ( | pFMinSearch | pfm | ) |
double fminsearch_get_minF | ( | pFMinSearch | pfm | ) |
double* fminsearch_get_minX | ( | pFMinSearch | pfm | ) |
int fminsearch_min | ( | pFMinSearch | pfm, |
double * | X0 | ||
) |
pFMinSearch fminsearch_new | ( | ) |
pFMinSearch fminsearch_new_with_eq | ( | math_func | eq, |
int | Xsize, | ||
void * | args | ||
) |
void fminsearch_set_equation | ( | pFMinSearch | pfm, |
math_func | eq, | ||
int | Xsize, | ||
void * | args | ||
) |
double fpdf | ( | double | x, |
int | df1, | ||
int | df2 | ||
) |
double gamcdf | ( | double | x, |
double | alpha, | ||
double | beta | ||
) |
double gamma | ( | double | c | ) |
double gammainc | ( | double | x, |
double | a | ||
) |
double gammaincln | ( | double | x, |
double | a | ||
) |
double gammaln | ( | double | c | ) |
double gampdf | ( | double | x, |
double | alpha, | ||
double | beta | ||
) |
double histogram_check_fitness | ( | pHistogram | phist, |
double * | args, | ||
double(*)(double p, double *args) | cdf | ||
) |
double histogram_compare | ( | pHistogram | phist1, |
pHistogram | phist2 | ||
) |
void histogram_free | ( | pHistogram | phist | ) |
int histogram_get_count | ( | pHistogram | phist, |
double | p | ||
) |
double histogram_get_prob | ( | pHistogram | phist, |
double | p | ||
) |
pHistogram histogram_load | ( | char * | file | ) |
int histogram_merge | ( | pHistogram | phist, |
pHistogram | parg | ||
) |
pHistogram histogram_new | ( | double * | data, |
int | nsamples, | ||
int | nbins | ||
) |
void histogram_print | ( | pHistogram | phist, |
FILE * | fp | ||
) |
void histogram_set_by_bin | ( | pHistogram | phist, |
double * | data, | ||
int | nsample, | ||
int | nbins | ||
) |
void histogram_set_by_unit | ( | pHistogram | phist, |
double * | data, | ||
int | nsample, | ||
double | unit | ||
) |
void histogram_set_sparse_data | ( | pHistogram | phist, |
double * | data, | ||
int | nsamples | ||
) |
void histogram_set_with_preset_point | ( | pHistogram | phist, |
double * | data, | ||
int | nsamples, | ||
double * | point, | ||
int | nbins | ||
) |
double ipow | ( | double | val, |
int | expo | ||
) |
double mean | ( | double * | data, |
int | size | ||
) |
double normcdf | ( | double | x, |
double | mu, | ||
double | sigma | ||
) |
double norminv | ( | double | x, |
double | mu, | ||
double | sigma | ||
) |
double normpdf | ( | double | x, |
double | mu, | ||
double | sigma | ||
) |
double normrnd | ( | double | mu, |
double | sigma | ||
) |
double poisscdf | ( | int | x, |
double | lambda | ||
) |
double poisspdf | ( | int | x, |
double | lambda | ||
) |
double pvalue | ( | double | v, |
const double * | conddist, | ||
int | size | ||
) |
double reylpdf | ( | double | x, |
double | b | ||
) |
double summation | ( | double * | data, |
int | size | ||
) |
double tcdf | ( | double | x, |
int | df | ||
) |
double tpdf | ( | double | x, |
int | df | ||
) |
double unifrnd | ( | ) |
double variance | ( | double * | data, |
int | size | ||
) |
double* vector_fraction | ( | double * | data, |
int | size, | ||
double | denominator | ||
) |