sstat 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/sstat/lib/survival.tar.gz +0 -0
- data/ext/sstat/lib/survival/survival_kaplan_meier.h +89 -22
- data/ext/sstat/sstat.c +192 -181
- data/ext/sstat/sstat.h +13 -0
- data/ext/sstat/sstat.o +0 -0
- data/ext/sstat/sstat.so +0 -0
- data/lib/sstat.o +0 -0
- data/lib/sstat.so +0 -0
- metadata +4 -12
- data/ext/extconf.rb +0 -4
- data/ext/lib/distribution.h +0 -274
- data/ext/lib/global_utility.h +0 -17
- data/ext/lib/survival.h +0 -6
- data/ext/lib/survival_def.h +0 -49
- data/ext/lib/survival_func.h +0 -204
- data/ext/lib/survival_utility.h +0 -293
- data/ext/lib/type_def.h +0 -35
- data/ext/sstat/lib/basic/log +0 -4
data/ext/lib/type_def.h
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#ifndef _SSTAT_TYPE_DEF_H_
|
|
2
|
-
#define _SSTAT_TYPE_DEF_H_
|
|
3
|
-
|
|
4
|
-
//EPSILON here is set based on ruby float. we need to chagne it for other project
|
|
5
|
-
#define EPSILON 2.2204460492503131e-16
|
|
6
|
-
|
|
7
|
-
//The following constants are from ATMEL http://www.atmel.com/webdoc/
|
|
8
|
-
#define M_2_SQRTPI 1.12837916709551257390
|
|
9
|
-
#define M_SQRT1_2 0.70710678118654752440
|
|
10
|
-
#define M_1_SQRT2PI (M_2_SQRTPI * M_SQRT1_2 / 2.0)
|
|
11
|
-
#define M_SQRT2 1.41421356237309504880
|
|
12
|
-
#define SQRT32 (4.0 * M_SQRT2)
|
|
13
|
-
|
|
14
|
-
//GSL constants for gaussian distribution
|
|
15
|
-
#define GAUSS_XUPPER (8.572)
|
|
16
|
-
#define GAUSS_XLOWER (-37)
|
|
17
|
-
#define GAUSS_SCALE (16.0)
|
|
18
|
-
#define GAUSS_EPSILON 1e-12
|
|
19
|
-
|
|
20
|
-
typedef struct point{
|
|
21
|
-
double x;
|
|
22
|
-
double y;
|
|
23
|
-
} point;
|
|
24
|
-
|
|
25
|
-
typedef struct curve{
|
|
26
|
-
struct point* point_array;
|
|
27
|
-
int size;
|
|
28
|
-
} curve;
|
|
29
|
-
|
|
30
|
-
typedef struct array{
|
|
31
|
-
double* D_ptr;
|
|
32
|
-
int size;
|
|
33
|
-
} array;
|
|
34
|
-
|
|
35
|
-
#endif
|
data/ext/sstat/lib/basic/log
DELETED