File: tamu_anova.h

package info (click to toggle)
tamuanova 0.2-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 992 kB
  • sloc: sh: 7,281; ansic: 703; makefile: 30
file content (87 lines) | stat: -rwxr-xr-x 1,139 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef __TAMU_ANOVA_H
#define __TAMU_ANOVA_H

#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else	/* 
 */
# define __BEGIN_DECLS
# define __END_DECLS
#endif	/* 
 */
  
__BEGIN_DECLS 
 
struct tamu_anova_table
{
  
long dfTr, 
dfE, 
dfT;
   
double SSTr;
   
double SSE;
   
double SST;
   
double MSTr;
   
double MSE;
   
double F;
   
double p;
};


struct tamu_anova_table tamu_anova (double data[], long factor[], long I,
				      long J);


struct tamu_anova_table_twoway
{
  
long 
dfA, dfB, dfAB, dfE, dfT;
   
double 
SSA, MSA, FA, pA, 
SSB, MSB, FB, pB, 
SSAB, MSAB, FAB, pAB, 
SSE,
    MSE, 
SST;
 
};



enum gsl_anova_twoway_types
{ 
anova_fixed, 
anova_random, 
anova_mixed 
};


struct tamu_anova_table_twoway tamu_anova_twoway (double data[],
						    long factor[][2], long I,
						    long J[2],
						    
enum
						    gsl_anova_twoway_types
						    type);



void tamu_anova_printtable_twoway (struct tamu_anova_table_twoway t);

void tamu_anova_printtable (struct tamu_anova_table t);


__END_DECLS 
#endif	/*__TAMU_ANOVA_H*/