TPCCLIB
|
Runs test: defines if residuals of two data arrays are independent. More...
#include "libtpcmodel.h"
Go to the source code of this file.
Functions | |
int | runs_test (double *data1, double *data2, int N, double alpha, double *p) |
int | residuals (double *d1, double *d2, int Nr, int *Rnr, int *Nminus, int *Nplus) |
int | mrl_between_tacs (double y1[], double y2[], int n) |
Runs test: defines if residuals of two data arrays are independent.
Definition in file runs_test.c.
int mrl_between_tacs | ( | double | y1[], |
double | y2[], | ||
int | n ) |
Calculates the maximum run length between given two arrays of data.
Definition at line 103 of file runs_test.c.
int residuals | ( | double * | d1, |
double * | d2, | ||
int | Nr, | ||
int * | Rnr, | ||
int * | Nminus, | ||
int * | Nplus ) |
Residuals function calculates the nr of runs (a sequence of consecutive positive or negative residuals) and nr of negative and positive residuals for two data arrays.
d1 | double array with data points |
d2 | double array with data points |
Nr | number of data points in both arrays |
Rnr | nr of runs |
Nminus | nr of negative residuals |
Nplus | nr of positive residuals |
Definition at line 56 of file runs_test.c.
Referenced by runs_test().
int runs_test | ( | double * | data1, |
double * | data2, | ||
int | N, | ||
double | alpha, | ||
double * | p ) |
Runs_test function tests if residuals of two data arrays are independent.
data1 | double array with data points |
data2 | double array with data points |
N | number of data points in both arrays |
alpha | significance level percentage (set to negative value to use default 5%) |
p | calculated probability p; enter NULL if not needed |
Definition at line 12 of file runs_test.c.