#include <arraymatrixtools.h>

Public Types | |
| enum | CONDITION { EQUAL , GREATER , LOWER , GREATER_EQUAL , LOWER_EQUAL , UNDEFINED } |
Static Public Member Functions | |
| template<typename T > | |
| static double | mean (T *input, int inputSize) |
| template<typename T > | |
| static double | sum (T *input, int inputSize) |
| template<typename T > | |
| static void | diff (T *output, T *input, int inputSize) |
| template<typename T > | |
| static void | sort (T *output, int *outputIndex, T *input, int inputSize) |
| template<typename T > | |
| static bool | any (T *input, int inputSize, const char *condition, double ref) |
| template<typename T > | |
| static std::vector< int > | find (T *input, int inputSize, const char *condition, double ref) |
| template<typename T > | |
| static std::vector< int > | find (std::vector< T > *input, const char *condition, double ref) |
| template<typename T > | |
| static void | find (int *output, int *outputSize, T *input, int inputSize, const char *condition, double ref) |
| template<typename T > | |
| static void | transpose (T *output, T *input, int input_row, int input_column) |
| static void | matrixMultiplication (double *output, double *input_1, int input_1_row, int input_1_column, double *input_2, int input_2_row, int input_2_column) |
| template<typename T > | |
| static void | pointwise_multiply (T *output, T *input_1, T *input_2, int inputSize) |
| template<typename T > | |
| static void | pieceOfArray (T *output, T *input, int start, int end) |
| template<typename T > | |
| static void | sparseDiagonalMatrix (T *sparse, T *input, int output_row, int output_column, int inputSize, int StartingReference) |
| static double | angle_norm (double x) |
| static double | unwrap (double prev, double now) |
| static bool | isNaN (double x) |
| template<typename T > | |
| static int | sign (T x) |
| template<typename T > | |
| static double | exponentialAverage (T *input, int inputSize) |
| template<typename T > | |
| static double | exponentialMovingAverage (T *input, int inputSize, double newValue) |
| static double | aglBetwVecInArcLen (double *v1, double *v2, int dim) |
| template<int T> | |
| static double | aglBetwVecInArcLen (dlib::vector< double, T > v1, dlib::vector< double, T > v2) |
| template<int T> | |
| static double | geoDistance (dlib::vector< double, T > v1, dlib::vector< double, T > v2) |
| static CONDITION | hashit (std::string const &inString) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
normalize an angle [-2*pi , 2*pi]
| x | is the input (angle) |
| return | is the normalized input |

|
inlinestatic |
checks if any data from input elements match the defined condition (equal, bigger, etc. ) with reference
| return | true if the condition is satisfied, else false |
| input | is the data vector |
| inputSize | is the size of input vector |
| condition | is the user condtion as char (E ==, L <, G >, LE <=, GE >= ) |
| ref | is the reference value |


|
inlinestatic |
computes difference between vector elements
| output | is vector of difference between input's elements |
| input | is vector |
| inputSize | is the size of vector |

|
inlinestatic |
returns the mean value of the exponential weigthed input
| input | is the input vector |
| inputSize | is the size of input |
| return | is mean value |


|
inlinestatic |
returns the average value of the exponential weigthed input (greater weight and significance on the most recent input data)
| input | is the input vector |
| inputSize | is the size of input |
| newValue | is most recent data |
| return | is mean value |

|
inlinestatic |
finds and return the index of any data from input elements match the defined condition (equal, bigger, etc. ) with reference
| output | a vector that contains the index of the found elements |
| outputSize | a the size of output vector |
| input | is the data vector |
| inputSize | is the data vector size |
| condition | is the user condtion as char ( E ==, L <, G >, LE <=, GE >= ) |
| ref | is the reference value |

|
inlinestatic |
finds and return the index of any data from input elements match the defined condition (equal, bigger, etc. ) with reference
| return | a vector |
| input | is the data vector |
| condition | is the user condtion as char ( EQUAL, GREATER, LOWER, GREATER_EQUAL, LOWER_EQUAL ) |
| ref | is the reference value |

|
inlinestatic |
finds and return the index of any data from input elements match the defined condition (equal, bigger, etc. ) with reference
| return | a vector |
| input | is the data vector |
| inputSize | is the data vector size |
| condition | is the user condtion as char ( EQUAL, GREATER, LOWER, GREATER_EQUAL, LOWER_EQUAL ) |
| ref | is the reference value |


|
inlinestatic |
|
inlinestatic |

|
inlinestatic |
checks if the input is not a number
| x | is the input |
| return | is true if the input is not a number, else false |
|
inlinestatic |
multiplies matrices (defined as C array)
| output | is the result of multiplication matrix (C array) |
| input_1 | is input matrix (C array) |
| input_1_row | is input matrix number of row |
| input_1_column | is input matrix number of column |
| input_2 | is input matrix (C array) |
| input_2_row | is input matrix number of row |
| input_2_column | is input matrix number of column |

|
inlinestatic |
computes mean of a vector
| input | is vector |
| inputSize | is the size of vector |
|
inlinestatic |
returns the given piece of an array
| output | is a piece of input |
| input | is a vector |
| start | is the index of the piece |
| end | is the index of the piece |

|
inlinestatic |
Pointwise multiplication of two vectors with the same size
| output | the result of pointwise multiplication |
| input_a | is the first vector |
| input_b | is the second vector |
| inputSize | is the size of input vectors |

|
inlinestatic |
returns the sign of the input
| x | is the input |
| return | is one if the input positive, else minus one |
|
inlinestatic |
sorts the input data (ascending)
| output | sorted data |
| outputIndex | is the index(location) of the sorted data before being sorted (input) |
| inputSize | is the size of input vector |

|
inlinestatic |
returns a diagonal sparse matrix of input
| sparse | is a the sparse matrix |
| input | is a vector |
| output_row | is the number of row of sparse matrix |
| output_column | is the number of column of sparse matrix |
| inputsize | is the size of input vector |
| Startingreference | is the diagonal starting reference |


|
inlinestatic |
computes sum of a vector
| input | is vector |
| inputSize | is the size of vector |

|
inlinestatic |
returns the transpose of a matrix defined as C array
| output | is the transposed matrix (C array) [A11, A12, ..., A21, A22, ...] |
| input | matrix (C array) |
| input_row | is the number of row |
| input_column | is the number of column |

|
inlinestatic |
returns an angle which its jump between consecutive angles is lessthan or equal to pi radians
| prev | is the input (previous angle) |
| now | is the input (current angle) |
| return | is the output |
