File: design.h

package info (click to toggle)
cufflinks 1.3.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 3,864 kB
  • sloc: cpp: 48,999; ansic: 12,297; sh: 3,381; python: 432; makefile: 209
file content (28 lines) | stat: -rw-r--r-- 931 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
/*
 *   Copyright (c) 1998-2000 Lucent Technologies.
 *   See README file for details.
 *
 *
 *   The design structure used in Locfit, and associated macro definitions.
 */

typedef struct {
  vari *dw, *index;
  double *xev;       /* fit point length p               */
  double *X;         /* design matrix, length n*p        */
  double *w, *di, *res, *th, *wd, h, xb[MXDIM];
  double *V, *P, *f1, *ss, *oc, *cf, llk;
  jacobian xtwx;     /* to store X'WVX and decomposition */
  int cfn[1+MXDIM], ncoef;
  int *fix;          /* indicator vector, showing fixed variables. */
  INT *ind, n, p, pref, (*itype)();
  INT (*vfun)();     /* pointer to the vertex processing function. */
} design;

#define cfn(des,i) (des->cfn[i])
#define d_x(des) ((des)->X)
#define d_xi(des,i) (&(des)->X[i*((des)->p)])
#define d_xij(des,i,j) ((des)->X[i*((des)->p)+j])
#define is_fixed(des,i) ((des)->fix[i]==1)

extern int des_reqd(), des_reqi();