| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.9 Informational functions
- Method on mglData:
voidPrintInfo (char *buf,boolall=false)const Print information about the data (sizes and momentum) to string buf. Parameter all set to print most of information (if
true) or just basic one like dimensions, maximal an minimal values.
- Method on mglData:
voidPrintInfo (FILE *fp)const Print information about the data (sizes and momentum) to FILE (for example, stdout)
- Method on mglData:
floatMaximal (int&i,int&j,int&k)const Gets maximal value of the data and its position in the array to variables i, j, k.
- Method on mglData:
floatMinimal (int&i,int&j,int&k)const Gets minimal value of the data and its position in the array to variables i, j, k.
- Method on mglData:
floatMaximal (float&i,float&j,float&k)const Gets maximal value of the data and its approximated (interpolated) position to variables i, j, k.
- Method on mglData:
floatMinimal (float&i,float&j,float&k)const Gets minimal value of the data and its approximated (interpolated) position to variables i, j, k.
- Method on mglData:
floatMomentum (chardir,float&m,float&w)const Gets zero-momentum (energy, I=\sum a_i) and write first momentum (median, m = \sum \xi_i a_i/I) and second momentum (width, w = \sum (\xi_i-m)^2 a_i/I) to variables. Here \xi is corresponding coordinate if dir is ‘'x'’, ‘'y'’ or ‘'z'’. Otherwise median is \sum a_i/N, width is \sum (a_i-m)^2/N.
- Method on mglData:
floatMomentum (chardir,float&m,float&w,float&s,float&k)const Gets zero-momentum (energy, I=\sum a_i) and write first momentum (median, m = \sum \xi_i a_i/I), second momentum (width, w = \sum (\xi_i-m)^2 a_i/I, third momentum (skewness, s = \sum (\xi_i-m)^3 a_i/ I w^3) and fourth momentum (kurtosis, k = \sum (\xi_i-m)^4 a_i / 3 I w^4)) to variables. Here \xi is corresponding coordinate if dir is ‘'x'’, ‘'y'’ or ‘'z'’. Otherwise median is \sum a_i/N, width is \sum (a_i-m)^2/N and so on.
- Method on mglData:
floatFind (const char *cond,int&i,int&j,int&k)const Find position (after specified in i, j, k) of first nonzero value of formula cond. Function return the data value at found position.
- Method on mglData:
floatLast (const char *cond,int&i,int&j,int&k)const Find position (before specified in i, j, k) of last nonzero value of formula cond. Function return the data value at found position.
- Method on mglData:
intFind (const char *cond,chardir,inti=0,intj=0,intk=0)const Return position of first in direction dir nonzero value of formula cond. The search is started from point {i,j,k}.
- Method on mglData:
boolFindAny (const char *cond)const Determines if any nonzero value of formula in the data array.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
