| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.23 Make another data (Pure C)
- C function:
HMDTmgl_data_subdata (const HMDTdat,intxx,intyy,intzz) Extracts sub-array data from the original data array keeping fixed positive index. For example
SubData(-1,2)extracts 3d row (indexes are zero based),SubData(4,-1)extracts 5th column,SubData(-1,-1,3)extracts 4th slice and so on.
- C function:
HMDTmgl_data_column (const HMDTdat,const char *eq) Get column (or slice) of the data filled by formula eq of other named columns. For example,
Column("n*w^2/exp(t)");. The column ids must be defined first bySetColumnId()function.
- C function:
voidmgl_data_set_id (HMDTdat,const char *ids) Sets the symbol id for data columns. The string must contain one symbol 'a'...'z' per column (without spaces).
- C function:
HMDTmgl_data_hist (const HMDTdat,intn,floatv1,floatv2,intnsub) Creates n-th points distribution of the data values in range [v1, v2]. Parameter nsub define the number of additional interpolated points (for smoothness of histogram).
- C function:
HMDTmgl_data_hist_w (const HMDTdat,const HMDTw,intn,floatv1,floatv2,intnsub) Creates n-th points distribution of the data values in range [v1, v2]. Array w specifies weights of the data elements. Parameter nsub define the number of additional interpolated points (for smoothness of histogram).
- C function:
HMDTmgl_data_momentum (const HMDTdat,chardir,const char *how) Get momentum (1D-array) of the data along direction dir. String how contain kind of momentum. The momentum is defined like as res_k = \sum_ij how(x_i,y_j,z_k) a_ij/ \sum_ij a_ij if var=‘z’ and so on. Coordinates ‘x’, ‘y’, ‘z’ are data indexes normalized in range [0,1].
- C function:
HMDTmgl_data_sum (const HMDTdat,const char *dir) Gets array which is the result of summation in given direction or direction(s).
- C function:
HMDTmgl_data_max_dir (const HMDTdat,const char *dir) Gets array which is the maximal data values in given direction or direction(s).
- C function:
HMDTmgl_data_min_dir (const HMDTdat,const char *dir) Gets array which is the minimal data values in given direction or direction(s).
- C function:
HMDTmgl_data_combine (const HMDTdat,const HMDTa) Returns direct multiplication of arrays (like, res[i,j] = this[i]*a[j] and so on).
- C function:
HMDTmgl_data_evaluate_i (const HMDTdat,const HMDTidat,intnorm) - C function:
HMDTmgl_data_evaluate_ij (const HMDTdat,const HMDTidat,const HMDTjdat,intnorm) - C function:
HMDTmgl_data_evaluate_ijk (const HMDTdat,const HMDTidat,const HMDTjdat,const HMDTkdat,intnorm) Get array which values is result of interpolation of original array for coordinates from other arrays. All dimensions must be the same for data idat, jdat, kdat. Coordinates from idat, jdat, kdat are supposed to be normalized in range [0,1] (if norm=
true) or in range [0,nx], [0,ny], [0,nz] correspondingly.
- C function:
HMDTmgl_data_resize (const HMDTdat,intmx,intmy,intmz) - C function:
HMDTmgl_data_resize_box (const HMDTdat,intmx,intmy,intmz,floatx1,floatx2,floaty1,floaty2,floatz1,floatz2) Resizes the data to new size mx, my, mz from box (part) [x1,x2] x [y1,y2] x [z1,z2] of original array. Initially x,y,z coordinates are supposed to be in [0,1].
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
