| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.9 Informational functions
- Метод класса
mglData(C++):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.
- Метод класса
mglData(C++):voidPrintInfo (FILE *fp)const Print information about the data (sizes and momentum) to FILE (for example, stdout).
- Метод класса
mglData(C++, Python):floatMaximal ()const - Функция С:
floatmgl_data_max (const HMDTdat) Gets maximal value of the data.
- Метод класса
mglData(C++, Python):floatMinimal ()const - Функция С:
floatmgl_data_min (HMDTdat)const Gets minimal value of the data.
- Метод класса
mglData(C++, Python):floatMaximal (int&i,int&j,int&k)const - Функция С:
floatmgl_data_max_int (const HMDTdat,int*i,int*j,int*k) Gets maximal value of the data and its position in the array to variables i, j, k.
- Метод класса
mglData(C++, Python):floatMinimal (int&i,int&j,int&k)const - Функция С:
floatmgl_data_min_int (const HMDTdat,int*i,int*j,int*k) Gets minimal value of the data and its position in the array to variables i, j, k.
- Метод класса
mglData(C++, Python):floatMaximal (float&i,float&j,float&k)const - Функция С:
floatmgl_data_max_real (const HMDTdat,float*x,float*y,float*z) Gets maximal value of the data and its approximated (interpolated) position to variables i, j, k.
- Метод класса
mglData(C++, Python):floatMinimal (float&i,float&j,float&k)const - Функция С:
floatmgl_data_min_real (const HMDTdat,float*x,float*y,float*z) Gets minimal value of the data and its approximated (interpolated) position to variables i, j, k.
- Метод класса
mglData(C++, Python):floatMomentum (chardir,float&m,float&w)const - Функция С:
floatmgl_data_momentum_mw (const HMDTdat,chardir,float*m,float*w) 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^2 = \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 m = \sum a_i/N, width is w^2 = \sum (a_i-m)^2/N.
- Метод класса
mglData(C++):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^2 = \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 m = \sum a_i/N, width is w^2 = \sum (a_i-m)^2/N and so on.
- Метод класса
mglData(C++, Python):floatFind (const char *cond,int&i,int&j,int&k)const - Функция С:
floatmgl_data_first (const HMDTdat,const char *cond,int*i,int*j,int*k) Find position (after specified in i, j, k) of first nonzero value of formula cond. Function return the data value at found position.
- Метод класса
mglData(C++, Python):floatLast (const char *cond,int&i,int&j,int&k)const - Функция С:
floatmgl_data_last (const HMDTdat,const char *cond,int*i,int*j,int*k) Find position (before specified in i, j, k) of last nonzero value of formula cond. Function return the data value at found position.
- Метод класса
mglData(C++, Python):intFind (const char *cond,chardir,inti=0,intj=0,intk=0)const - Функция С:
floatmgl_data_find (const HMDTdat,const char *cond,inti,intj,intk) Return position of first in direction dir nonzero value of formula cond. The search is started from point {i,j,k}.
- Метод класса
mglData(C++, Python):boolFindAny (const char *cond)const - Функция С:
floatmgl_data_find_any (const HMDTdat,const char *cond) Determines if any nonzero value of formula in the data array.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
