2.1.17.8 Vector Analysis


Functions

Name Brief Example
find_largest_gap get the index of largest gap from value array, array must be sorted first Examples
ocmath_b_copy Copy a vector of type BYTE with given array of indices. Examples
ocmath_check_order Check a segment of curve's X value is monotonic increase, monotonic decrease, or not monotonic. Examples
ocmath_compare_data Compare two vectors or matrices cell by cell in predefined tolerance. Examples
ocmath_d_copy Copy a vector of type double with given array of indices. Examples
ocmath_d_get_vector_inc Check data monotonic increasing or decreasing with consistant increment or otherwise. Examples
ocmath_d_stretch Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range. Examples
ocmath_f_copy Copy a vector of type float with given array of indices. Examples
ocmath_f_stretch Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range. Examples
ocmath_group_xy_by_x This function separates XY data to groups according to their X values. Examples
ocmath_i_get_vector_inc Check data monotonic increasing or decreasing with consistant increment or otherwise. Examples
ocmath_is_monotonic Judge if a vector is (strictly) monotonic. Call the function IsOrdered of class NRVec to check the vector in (strictly) ascending(descending) order or not. Examples
ocmath_linear_transform Map data array slope [min, max] to [nMin, nMax] linearly Examples
ocmath_replace_data_in_vector Replace elements that match the condition in a vector Examples
ocmath_simple_math Perform arithmatic operation element-wised on two curves Examples
ocmath_sort_xy sort two double arrays with X sorted and Y to reorder accordingly Examples
ocmath_ui_copy Copy a vector of type UINT with given array of indices. Examples
ocmath_us_copy Copy a vector of type USHORT with given array of indices. Examples
ocmath_us_stretch Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range. Examples
ocmath_xyzv_remove_duplicates This function remove duplicated points and replace duplicated points by nMethod, where 0 means replace with mean, 1=median, 2=min, 3=max, 4=sum Examples
vec_is_equal Check if all elements in vector are equal Examples
This section covers the following topics: