Library "ArrayExtension" Functions to extend Arrays.
index_2d_to_1d(dimension_x, dimension_y, index_x, index_y) returns the flatened one dimension index of a two dimension array. Parameters:
dimension_x: int, dimension of X.
dimension_y: int, dimension of Y.
index_x: int, index of X.
index_y: int, index of Y.
Returns: int, index in 1 dimension
index_3d_to_1d(dimension_x, dimension_y, dimension_z, index_x, index_y, index_z) returns the flatened one dimension index of a three dimension array. Parameters:
dimension_x: int, dimension of X.
dimension_y: int, dimension of Y.
dimension_z: int, dimension of Z.
index_x: int, index of X.
index_y: int, index of Y.
index_z: int, index of Z.
Returns: int, index in 1 dimension
down_sample(sample, new_size) Down samples a array to a specified size. Parameters:
sample: float array, array with source data.
new_size: new size of down sampled array.
Returns: float array with down sampled data.
sort_indices_float(sample, order) Sorts array and returns a extra array with sorting indices. Parameters: