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

#include "nifti_stats.c"

Go to the source code of this file.


Defines

#define OMIT_MAIN

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)

Define Documentation

#define OMIT_MAIN
 

Definition at line 8 of file nifti_statlib.c.


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 }
 

Powered by Plone

This site conforms to the following standards: