/usr/include/nifti/nifticdf.h is in libnifti-dev 2.0.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | /************************************************************************/
/** Functions to compute cumulative distributions and their inverses **/
/** for the NIfTI-1 statistical types. Much of this code is taken **/
/** from other sources. In particular, the cdflib functions by **/
/** Brown and Lovato make up the bulk of this file. That code **/
/** was placed in the public domain. The code by K. Krishnamoorthy **/
/** is also released for unrestricted use. Finally, the other parts **/
/** of this file (by RW Cox) are released to the public domain. **/
/** **/
/** Most of this file comprises a set of "static" functions, to be **/
/** called by the user-level functions at the very end of the file. **/
/** At the end of the file is a simple main program to drive these **/
/** functions. **/
/** **/
/** To find the user-level functions, search forward for the string **/
/** "nifti_", which will be at about line 11000. **/
/************************************************************************/
/*****==============================================================*****/
/***** Neither the National Institutes of Health (NIH), the DFWG, *****/
/***** nor any of the members or employees of these institutions *****/
/***** imply any warranty of usefulness of this material for any *****/
/***** purpose, and do not assume any liability for damages, *****/
/***** incidental or otherwise, caused by any use of this document. *****/
/***** If these conditions are not acceptable, do not use this! *****/
/*****==============================================================*****/
/************************************************************************/
#include <stdlib.h>
/****************************************************************************
Statistical codes implemented :
NIFTI_INTENT_CORREL = correlation statistic
NIFTI_INTENT_TTEST = t statistic (central)
NIFTI_INTENT_FTEST = F statistic (central)
NIFTI_INTENT_ZSCORE = N(0,1) statistic
NIFTI_INTENT_CHISQ = Chi-squared (central)
NIFTI_INTENT_BETA = Beta variable (central)
NIFTI_INTENT_BINOM = Binomial variable
NIFTI_INTENT_GAMMA = Gamma distribution
NIFTI_INTENT_POISSON = Poisson distribution
NIFTI_INTENT_FTEST_NONC = noncentral F statistic
NIFTI_INTENT_CHISQ_NONC = noncentral chi-squared
NIFTI_INTENT_TTEST_NONC = noncentral t statistic
NIFTI_INTENT_CHI = Chi statistic (central)
NIFTI_INTENT_INVGAUSS = inverse Gaussian variable
NIFTI_INTENT_WEIBULL = Weibull distribution
NIFTI_INTENT_EXTVAL = Extreme value type I
NIFTI_INTENT_NORMAL = N(mu,variance) normal
NIFTI_INTENT_LOGISTIC = Logistic distribution
NIFTI_INTENT_LAPLACE = Laplace distribution
NIFTI_INTENT_UNIFORM = Uniform distribution
NIFTI_INTENT_PVAL = "p-value"
NIFTI_INTENT_LOGPVAL = -ln(p)
NIFTI_INTENT_LOG10PVAL = -log10(p)
*****************************************************************************/
extern char *inam[];
int nifti_intent_code( char *name );
double nifti_stat2cdf( double val, int code, double p1,double p2,double p3 );
double nifti_stat2rcdf( double val, int code, double p1,double p2,double p3 );
double nifti_cdf2stat( double p , int code, double p1,double p2,double p3 );
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
double nifti_rcdf2stat( double q , int code, double p1,double p2,double p3 );
#endif/*(__COMPILE_UNUSED_FUNCTIONS__)*/
double nifti_stat2zscore( double val , int code, double p1,double p2,double p3);
double nifti_stat2hzscore( double val, int code, double p1,double p2,double p3);
/** Prototypes for cdflib functions **/
double algdiv(double*,double*);
double alngam(double*);
double alnrel(double*);
double apser(double*,double*,double*,double*);
double basym(double*,double*,double*,double*);
double bcorr(double*,double*);
double betaln(double*,double*);
double bfrac(double*,double*,double*,double*,double*,double*);
void bgrat(double*,double*,double*,double*,double*,double*,int*i);
double bpser(double*,double*,double*,double*);
void bratio(double*,double*,double*,double*,double*,double*,int*);
double brcmp1(int*,double*,double*,double*,double*);
double brcomp(double*,double*,double*,double*);
double bup(double*,double*,double*,double*,int*,double*);
void cdfbet(int*,double*,double*,double*,double*,double*,double*,
int*,double*);
void cdfbin(int*,double*,double*,double*,double*,double*,double*,
int*,double*);
void cdfchi(int*,double*,double*,double*,double*,int*,double*);
void cdfchn(int*,double*,double*,double*,double*,double*,int*,double*);
void cdff(int*,double*,double*,double*,double*,double*,int*,double*);
void cdffnc(int*,double*,double*,double*,double*,double*,double*,
int*s,double*);
void cdfgam(int*,double*,double*,double*,double*,double*,int*,double*);
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
void cdfnbn(int*,double*,double*,double*,double*,double*,double*,
int*,double*);
void cdfnor(int*,double*,double*,double*,double*,double*,int*,double*);
#endif /*defined(__COMPILE_UNUSED_FUNCTIONS__)*/
void cdfpoi(int*,double*,double*,double*,double*,int*,double*);
void cdft(int*,double*,double*,double*,double*,int*,double*);
void cumbet(double*,double*,double*,double*,double*,double*);
void cumbin(double*,double*,double*,double*,double*,double*);
void cumchi(double*,double*,double*,double*);
void cumchn(double*,double*,double*,double*,double*);
void cumf(double*,double*,double*,double*,double*);
void cumfnc(double*,double*,double*,double*,double*,double*);
void cumgam(double*,double*,double*,double*);
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
void cumnbn(double*,double*,double*,double*,double*,double*);
#endif /*defined(__COMPILE_UNUSED_FUNCTIONS__)*/
void cumnor(double*,double*,double*);
void cumpoi(double*,double*,double*,double*);
void cumt(double*,double*,double*,double*);
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
double dbetrm(double*,double*);
#endif /*defined(__COMPILE_UNUSED_FUNCTIONS__)*/
double devlpl(double [],int*,double*);
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
double dexpm1(double*);
double dinvnr(double *p,double *q);
#endif /*defined(__COMPILE_UNUSED_FUNCTIONS__)*/
void E0000(int,int*,double*,double*,unsigned long*,
unsigned long*,double*,double*,double*,
double*,double*,double*,double*);
void dinvr(int*,double*,double*,unsigned long*,unsigned long*);
void dstinv(double*,double*,double*,double*,double*,double*,
double*);
#if defined(__COMPILE_UNUSED_FUNCTIONS__)
double dlanor(double*);
double dln1mx(double*);
double dln1px(double*);
double dlnbet(double*,double*);
double dlngam(double*);
double dstrem(double*);
#endif /*defined(__COMPILE_UNUSED_FUNCTIONS__)*/
double dt1(double*,double*,double*);
void E0001(int,int*,double*,double*,double*,double*,
unsigned long*,unsigned long*,double*,double*,
double*,double*);
void dzror(int*,double*,double*,double*,double *,
unsigned long*,unsigned long*);
void dstzr(double *zxlo,double *zxhi,double *zabstl,double *zreltl);
double erf1(double*);
double erfc1(int*,double*);
double esum(int*,double*);
double exparg(int*);
double fpser(double*,double*,double*,double*);
double gam1(double*);
void gaminv(double*,double*,double*,double*,double*,int*);
double gamln(double*);
double gamln1(double*);
double Xgamm(double*);
void grat1(double*,double*,double*,double*,double*,double*);
void gratio(double*,double*,double*,double*,int*);
double gsumln(double*,double*);
double psi(double*);
double rcomp(double*,double*);
double rexp(double*);
double rlog(double*);
double rlog1(double*);
double spmpar(int*);
double stvaln(double*);
double fifdint(double);
double fifdmax1(double,double);
double fifdmin1(double,double);
double fifdsign(double,double);
long fifidint(double);
long fifmod(long,long);
void ftnstop(char*);
int ipmpar(int*);
/** end: prototypes for cdflib functions **/
|