RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
dist_based_position.h File Reference

Functions of distance-based localization systems. More...

#include <math.h>
#include <inttypes.h>
#include "matrix.h"

Go to the source code of this file.

Functions

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. More...
 
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 localization system. More...
 

Detailed Description

Functions of distance-based localization systems.

Author
Zakaria Kasmi zkasm.nosp@m.i@in.nosp@m.f.fu-.nosp@m.berl.nosp@m.in.de

Definition in file dist_based_position.h.

Function Documentation

◆ dist_based_get_absolute_error()

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.

Parameters
[in]value_arr[]true position.
[in]approx_value_arr[]approximate position of the mobile device.
[in,out]absolute_error_arr[]includes the absolute error.
[in]lengtharrays length.

Definition at line 29 of file dist_based_position.c.

◆ dist_based_get_distance_to_anchor()

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 localization system.

Parameters
[in]ref_pointthree-dimensional coordinates of the reference stations.
[in]pointthree-dimensional coordinates of the mobile device.
Returns
the distance between the mobile station and the reference station.

Definition at line 45 of file dist_based_position.c.

References matrix_t, vector_get_norm2(), and vector_sub().