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

6.9 Informational functions

Метод класса mglData (C++): 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.

Метод класса mglData (C++): void PrintInfo (FILE *fp) const

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

Метод класса mglData (C++, Python): float Maximal () const
Функция С: float mgl_data_max (const HMDT dat)

Gets maximal value of the data.

Метод класса mglData (C++, Python): float Minimal () const
Функция С: float mgl_data_min (HMDT dat) const

Gets minimal value of the data.

Метод класса mglData (C++, Python): float Maximal (int &i, int &j, int &k) const
Функция С: float mgl_data_max_int (const HMDT dat, 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): float Minimal (int &i, int &j, int &k) const
Функция С: float mgl_data_min_int (const HMDT dat, 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): float Maximal (float &i, float &j, float &k) const
Функция С: float mgl_data_max_real (const HMDT dat, 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): float Minimal (float &i, float &j, float &k) const
Функция С: float mgl_data_min_real (const HMDT dat, 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): float Momentum (char dir, float &m, float &w) const
Функция С: float mgl_data_momentum_mw (const HMDT dat, char dir, 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++): 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^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): float Find (const char *cond, int &i, int &j, int &k) const
Функция С: float mgl_data_first (const HMDT dat, 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): float Last (const char *cond, int &i, int &j, int &k) const
Функция С: float mgl_data_last (const HMDT dat, 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): int Find (const char *cond, char dir, int i=0, int j=0, int k=0) const
Функция С: float mgl_data_find (const HMDT dat, const char *cond, int i, int j, int k)

Return position of first in direction dir nonzero value of formula cond. The search is started from point {i,j,k}.

Метод класса mglData (C++, Python): bool FindAny (const char *cond) const
Функция С: float mgl_data_find_any (const HMDT dat, const char *cond)

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


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