|
RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
|
Go to the documentation of this file.
36 if ((value_arr != NULL) && (approx_value_arr != NULL)
37 && (absolute_error_arr != NULL)) {
38 for (i = 0; i < length; i++) {
39 absolute_error_arr[i] = fabs(
40 value_arr[i] - approx_value_arr[i]);
vector_t vector_get_norm2(uint8_t length, vector_t arr[])
Compute the 2-norm norm of a vector.
Functions of distance-based localization systems.
matrix_t dist_based_get_distance_to_anchor(matrix_t ref_point[3], matrix_t point[3])
Computes the distance between a mobile station and a reference station of a distance-based localizati...
void dist_based_get_absolute_error(matrix_t value_arr[], matrix_t approx_value_arr[], matrix_t absolute_error_arr[], uint8_t length)
Computes the absolute error of a position of a distance-based localization system.
#define matrix_t
Define the data type of the matrix elements.
void vector_sub(uint8_t size, vector_t a_vec[], vector_t b_vec[], vector_t a_minus_b[])
Compute the subtraction of two vectors.