manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.9 Informational functions

Method on mglData: void PrintInfo (char *buf, bool all=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: void PrintInfo (FILE *fp) const

Print information about the data (sizes and momentum) to FILE (for example, stdout)

Method on mglData: float Maximal () const

Gets maximal value of the data.

Method on mglData: float Minimal () const

Gets minimal value of the data.

Method on mglData: float Maximal (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: float Minimal (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: float Maximal (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: float Minimal (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: float Momentum (char dir, 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: float Momentum (char dir, 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: float Find (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: float Last (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: int Find (const char *cond, char dir, int i=0, int j=0, int k=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: bool FindAny (const char *cond) const

Determines if any nonzero value of formula in the data array.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2026
Individual documents may contain additional copyright information.