Nemo  2.3.46
utils.h
Go to the documentation of this file.
1 
30 #ifndef UTILS_H
31 #define UTILS_H
32 
33 #include "types.h"
34 #include "tmatrix.h"
35 #include <string>
36 
37 
38 
39 
40 
41 
42 extern bool setSpatialMatrix (string param, string numColCondition, TMatrix *inMat,
43  TMatrix *outMat, unsigned int nVal, unsigned int patchNbr,
44  bool doRandomize = false);
45 
46 extern double my_mean (double *data, unsigned int size);
47 
48 extern double my_mean_no_nan (double *data, unsigned int size);
49 
50 extern double my_variance_with_fixed_mean (double *data, unsigned int size, double mean);
51 
52 extern double my_variance_with_fixed_mean_no_nan (double *data, unsigned int size, double mean);
53 
54 #endif
double my_mean(double *data, unsigned int size)
Definition: utils.cc:37
bool setSpatialMatrix(string param, string numColCondition, TMatrix *inMat, TMatrix *outMat, unsigned int nVal, unsigned int patchNbr, bool doRandomize=false)
Definition: utils.cc:87
double my_mean_no_nan(double *data, unsigned int size)
Definition: utils.cc:48
A class to handle matrix in params, coerces matrix into a vector of same total size.
Definition: tmatrix.h:49
double my_variance_with_fixed_mean(double *data, unsigned int size, double mean)
Definition: utils.cc:62
double my_variance_with_fixed_mean_no_nan(double *data, unsigned int size, double mean)
Definition: utils.cc:73

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR