-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregmodels.h
More file actions
35 lines (27 loc) · 798 Bytes
/
Copy pathregmodels.h
File metadata and controls
35 lines (27 loc) · 798 Bytes
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
/*
FILE: REGMODELS.H
Linked list
*/
//this avoids including the function headers twice
#ifndef _REGMODELS
#define _REGMODELS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <gsl/gsl_matrix.h>
typedef struct myRegression* LPRegression;
typedef struct myRegression Regression;
struct myRegression
{
int lenA; //number of regressors
int* A; //regressors
double* beta;
double MC; //monta carlo
double laplace;
LPRegression Next; //link to the next regression
};
void AddRegression(int nMaxRegs, LPRegression regressions, int lenA, int* A, gsl_matrix* beta, double MC, double laplace);
void DeleteAllRegressions(LPRegression regressions);
void DeleteLastRegression(LPRegression regressions);
void SaveRegressions(char* filename,LPRegression regressions);
#endif