Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

nifti_statlib.c

Go to the documentation of this file.
00001 /******************************/
00002 /**** NOT FINISHED YET!!!! ****/
00003 /******************************/
00004 
00005 /****************************************************************************/
00006 /**** Get the actual statistcal calculation functions from nifti_stats.c ****/
00007 
00008 #define OMIT_MAIN
00009 #include "nifti_stats.c"
00010 
00011 /*--------------------------------------------------------------------------*/
00012 /*! Replacement for THD_stat_to_pval().
00013      - NIfTI correlation has 1 DOF param, AFNI has 3
00014      - AFNI p-values are 2-sided for some distributions:
00015        - CORREL, TTEST, ZSCORE, NORMAL, LOGISTIC, LAPLACE
00016        - that is, those whose domain runs from -infinity..+infinity
00017 ----------------------------------------------------------------------------*/
00018 
00019 float NIFTI_stat_to_pval( float thr, int statcode, float *stataux )
00020 {
00021    float pval = -1.0f ;
00022 
00023    if( thr == 0.0f ) return 1.0f ;
00024 
00025    return pval ;
00026 }
00027 
00028 /*--------------------------------------------------------------------------*/
00029 /*! Replacement for THD_pval_to_stat().
00030 ----------------------------------------------------------------------------*/
00031 
00032 float NIFTI_pval_to_stat( float pval, int statcode, float *stataux )
00033 {
00034    float stat = -1.0f ;
00035 
00036    if( pval >= 0.999999f ) return 0.0f ;
00037 
00038    return pval ;
00039 }
00040 
00041 /*--------------------------------------------------------------------------*/
00042 /*! Replacement for THD_stat_to_zscore().
00043 ----------------------------------------------------------------------------*/
00044 
00045 float NIFTI_stat_to_zscore( float thr, int statcode, float *stataux )
00046 {
00047    float zscore = thr ;
00048 
00049    return zscore ;
00050 }
 

Powered by Plone

This site conforms to the following standards: