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.h File Reference

Go to the source code of this file.


Defines

#define NIFTI_INTENT_CORREL   2
#define NIFTI_INTENT_TTEST   3
#define NIFTI_INTENT_FTEST   4
#define NIFTI_INTENT_ZSCORE   5
#define NIFTI_INTENT_CHISQ   6
#define NIFTI_INTENT_BETA   7
#define NIFTI_INTENT_BINOM   8
#define NIFTI_INTENT_GAMMA   9
#define NIFTI_INTENT_POISSON   10
#define NIFTI_INTENT_NORMAL   11
#define NIFTI_INTENT_FTEST_NONC   12
#define NIFTI_INTENT_CHISQ_NONC   13
#define NIFTI_INTENT_LOGISTIC   14
#define NIFTI_INTENT_LAPLACE   15
#define NIFTI_INTENT_UNIFORM   16
#define NIFTI_INTENT_TTEST_NONC   17
#define NIFTI_INTENT_WEIBULL   18
#define NIFTI_INTENT_CHI   19
#define NIFTI_INTENT_INVGAUSS   20
#define NIFTI_INTENT_EXTVAL   21
#define NIFTI_INTENT_PVAL   22
#define NIFTI_INTENT_LOGPVAL   23
#define NIFTI_INTENT_LOG10PVAL   24

Functions

float NIFTI_stat_to_pval (float thr, int statcode, float *stataux)
float NIFTI_pval_to_stat (float pval, int statcode, float *stataux)
float NIFTI_stat_to_zscore (float thr, int statcode, float *stataux)

Variables

int NIFTI_need_stat_aux []

Define Documentation

#define NIFTI_INTENT_BETA   7
 

Definition at line 9 of file nifti_statlib.h.

#define NIFTI_INTENT_BINOM   8
 

Definition at line 10 of file nifti_statlib.h.

#define NIFTI_INTENT_CHI   19
 

Definition at line 21 of file nifti_statlib.h.

#define NIFTI_INTENT_CHISQ   6
 

Definition at line 8 of file nifti_statlib.h.

#define NIFTI_INTENT_CHISQ_NONC   13
 

Definition at line 15 of file nifti_statlib.h.

#define NIFTI_INTENT_CORREL   2
 

Definition at line 4 of file nifti_statlib.h.

#define NIFTI_INTENT_EXTVAL   21
 

Definition at line 23 of file nifti_statlib.h.

#define NIFTI_INTENT_FTEST   4
 

Definition at line 6 of file nifti_statlib.h.

#define NIFTI_INTENT_FTEST_NONC   12
 

Definition at line 14 of file nifti_statlib.h.

#define NIFTI_INTENT_GAMMA   9
 

Definition at line 11 of file nifti_statlib.h.

#define NIFTI_INTENT_INVGAUSS   20
 

Definition at line 22 of file nifti_statlib.h.

#define NIFTI_INTENT_LAPLACE   15
 

Definition at line 17 of file nifti_statlib.h.

#define NIFTI_INTENT_LOG10PVAL   24
 

Definition at line 26 of file nifti_statlib.h.

#define NIFTI_INTENT_LOGISTIC   14
 

Definition at line 16 of file nifti_statlib.h.

#define NIFTI_INTENT_LOGPVAL   23
 

Definition at line 25 of file nifti_statlib.h.

#define NIFTI_INTENT_NORMAL   11
 

Definition at line 13 of file nifti_statlib.h.

#define NIFTI_INTENT_POISSON   10
 

Definition at line 12 of file nifti_statlib.h.

#define NIFTI_INTENT_PVAL   22
 

Definition at line 24 of file nifti_statlib.h.

#define NIFTI_INTENT_TTEST   3
 

Definition at line 5 of file nifti_statlib.h.

#define NIFTI_INTENT_TTEST_NONC   17
 

Definition at line 19 of file nifti_statlib.h.

#define NIFTI_INTENT_UNIFORM   16
 

Definition at line 18 of file nifti_statlib.h.

#define NIFTI_INTENT_WEIBULL   18
 

Definition at line 20 of file nifti_statlib.h.

#define NIFTI_INTENT_ZSCORE   5
 

Definition at line 7 of file nifti_statlib.h.


Function Documentation

float NIFTI_pval_to_stat float    pval,
int    statcode,
float *    stataux
 

Replacement for THD_pval_to_stat(). ----------------------------------------------------------------------------

Definition at line 32 of file nifti_statlib.c.

00033 {
00034    float stat = -1.0f ;
00035 
00036    if( pval >= 0.999999f ) return 0.0f ;
00037 
00038    return pval ;
00039 }

float NIFTI_stat_to_pval float    thr,
int    statcode,
float *    stataux
 

Replacement for THD_stat_to_pval().

  • NIfTI correlation has 1 DOF param, AFNI has 3
  • AFNI p-values are 2-sided for some distributions:
    • CORREL, TTEST, ZSCORE, NORMAL, LOGISTIC, LAPLACE
    • that is, those whose domain runs from -infinity..+infinity ----------------------------------------------------------------------------

Definition at line 19 of file nifti_statlib.c.

References thr.

00020 {
00021    float pval = -1.0f ;
00022 
00023    if( thr == 0.0f ) return 1.0f ;
00024 
00025    return pval ;
00026 }

float NIFTI_stat_to_zscore float    thr,
int    statcode,
float *    stataux
 

Replacement for THD_stat_to_zscore(). ----------------------------------------------------------------------------

Definition at line 45 of file nifti_statlib.c.

References thr.

00046 {
00047    float zscore = thr ;
00048 
00049    return zscore ;
00050 }

Variable Documentation

int NIFTI_need_stat_aux[] [static]
 

Initial value:

 { 0 , 0 ,
                                     3 , 1 , 2 , 0 , 1 , 2 , 2 , 2 , 1 ,
                                     2 , 3 , 2 , 2 , 2 , 2 , 3 , 1 , 2 ,
                                     2 , 0 , 0 , 0
                                   }
Number of auxiliary parameters needed for each distribution *

Definition at line 31 of file nifti_statlib.h.

 

Powered by Plone

This site conforms to the following standards: