1 /******************************/
2 /**** NOT FINISHED YET!!!! ****/
3 /******************************/
4 
5 /*--------------------------------------------------------------------------*/
6 /*! Replacement for THD_stat_to_pval().
7      - NIfTI correlation has 1 DOF param, AFNI has 3
8      - AFNI p-values are 2-sided for some distributions:
9        - CORREL, TTEST, ZSCORE, NORMAL, LOGISTIC, LAPLACE
10        - that is, those whose domain runs from -infinity..+infinity
11 ----------------------------------------------------------------------------*/
12 
NIFTI_stat_to_pval(float thr,int statcode,float * stataux)13 float NIFTI_stat_to_pval( float thr, int statcode, float *stataux )
14 {
15    float pval = -1.0f ;
16 
17    if( thr == 0.0f ) return 1.0f ;
18 
19    return pval ;
20 }
21 
22 /*--------------------------------------------------------------------------*/
23 /*! Replacement for THD_pval_to_stat().
24 ----------------------------------------------------------------------------*/
25 
NIFTI_pval_to_stat(float pval,int statcode,float * stataux)26 float NIFTI_pval_to_stat( float pval, int statcode, float *stataux )
27 {
28    float stat = -1.0f ;
29 
30    if( pval >= 0.999999f ) return 0.0f ;
31 
32    return pval ;
33 }
34 
35 /*--------------------------------------------------------------------------*/
36 /*! Replacement for THD_stat_to_zscore().
37 ----------------------------------------------------------------------------*/
38 
NIFTI_stat_to_zscore(float thr,int statcode,float * stataux)39 float NIFTI_stat_to_zscore( float thr, int statcode, float *stataux )
40 {
41    float zscore = thr ;
42 
43    return zscore ;
44 }
45