|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
#include "mrtklib/mrtk_lambda.h"#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "mrtklib/mrtk_mat.h"Go to the source code of this file.
Macros | |
| #define | LOOPMAX 10000 /* maximum count of search loop */ |
| #define | SGN(x) |
| #define | ROUND(x) |
| #define | SWAP(x, y) |
Functions | |
| static int | LD (int n, const double *Q, double *L, double *D) |
| static void | gauss (int n, double *L, double *Z, int i, int j) |
| static void | perm (int n, double *L, double *D, int j, double del, double *Z) |
| static void | reduction (int n, double *L, double *D, double *Z) |
| static int | search (int n, int m, const double *L, const double *D, const double *zs, double *zn, double *s) |
| int | lambda (int n, int m, const double *a, const double *Q, double *F, double *s) |
| Integer least-square estimation (LAMBDA/MLAMBDA). | |
| int | lambda_reduction (int n, const double *Q, double *Z) |
| LAMBDA reduction for integer least-squares. | |
| int | lambda_search (int n, int m, const double *a, const double *Q, double *F, double *s) |
| MLAMBDA search for integer least-squares. | |
| static double | cdf_norm (double x) |
Variables | |
| static const float | inv_ratio_tbl_1 [] |
| static const float | inv_ratio_tbl_10 [] |
| #define LOOPMAX 10000 /* maximum count of search loop */ |
Definition at line 27 of file mrtk_lambda.c.
Referenced by search().
| #define ROUND | ( | x | ) |
Definition at line 30 of file mrtk_lambda.c.
| #define SGN | ( | x | ) |
Definition at line 29 of file mrtk_lambda.c.
Referenced by search().
| #define SWAP | ( | x, | |
| y ) |
Definition at line 31 of file mrtk_lambda.c.
|
static |
Definition at line 565 of file mrtk_lambda.c.
|
static |
Definition at line 70 of file mrtk_lambda.c.
References ROUND.
Referenced by reduction().
|
extern |
Integer least-square estimation (LAMBDA/MLAMBDA).
Reduction is performed by LAMBDA (ref.[1]), and search by MLAMBDA (ref.[2]).
| [in] | n | Number of float parameters |
| [in] | m | Number of fixed solutions |
| [in] | a | Float parameters (n x 1) |
| [in] | Q | Covariance matrix of float parameters (n x n) |
| [out] | F | Fixed solutions (n x m) |
| [out] | s | Sum of squared residuals of fixed solutions (1 x m) |
Definition at line 225 of file mrtk_lambda.c.
References eye(), free, LD(), mat(), matmul(), reduction(), search(), solve(), and zeros().
Referenced by gen_msm_sig(), resamb_LAMBDA(), resamb_LAMBDA(), resamb_LAMBDA(), and search_amb_lambda().
|
extern |
LAMBDA reduction for integer least-squares.
Performs decorrelation reduction on the covariance matrix using the LAMBDA method (ref.[1]).
| [in] | n | Number of float parameters |
| [in] | Q | Covariance matrix of float parameters (n x n) |
| [out] | Z | LAMBDA reduction matrix (n x n) |
Definition at line 263 of file mrtk_lambda.c.
References free, LD(), mat(), reduction(), and zeros().
|
extern |
MLAMBDA search for integer least-squares.
Performs the modified LAMBDA search algorithm (ref.[2]) for integer least-squares estimation.
| [in] | n | Number of float parameters |
| [in] | m | Number of fixed solutions |
| [in] | a | Float parameters (n x 1) |
| [in] | Q | Covariance matrix of float parameters (n x n) |
| [out] | F | Fixed solutions (n x m) |
| [out] | s | Sum of squared residuals of fixed solutions (1 x m) |
Definition at line 302 of file mrtk_lambda.c.
References free, LD(), mat(), search(), and zeros().
|
static |
Definition at line 40 of file mrtk_lambda.c.
Referenced by lambda(), lambda_reduction(), and lambda_search().
|
static |
Definition at line 83 of file mrtk_lambda.c.
References SWAP.
Referenced by reduction().
|
static |
Definition at line 106 of file mrtk_lambda.c.
References gauss(), and perm().
Referenced by lambda(), and lambda_reduction().
|
static |
Definition at line 129 of file mrtk_lambda.c.
References free, LOOPMAX, mat(), ROUND, SGN, SWAP, and zeros().
Referenced by get_close_clock(), get_close_orbit(), lambda(), and lambda_search().
|
static |
Definition at line 327 of file mrtk_lambda.c.
|
static |
Definition at line 471 of file mrtk_lambda.c.