1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-07 07:50:32 +00:00

Enhance const correctness, minor cosmetics

This commit is contained in:
Carles Fernandez 2018-08-21 15:20:48 +02:00
parent ff90cf1a7e
commit 0c26a95af4
3 changed files with 9 additions and 10 deletions

View File

@ -156,7 +156,6 @@ Gps_L1_Ca_Kf_Tracking_cc::Gps_L1_Ca_Kf_Tracking_cc(
// sample synchronization // sample synchronization
d_sample_counter = 0; d_sample_counter = 0;
//d_sample_counter_seconds = 0;
d_acq_sample_stamp = 0; d_acq_sample_stamp = 0;
d_enable_tracking = false; d_enable_tracking = false;

View File

@ -38,7 +38,7 @@
*/ */
#include "bayesian_estimation.h" #include "bayesian_estimation.h"
#include <armadillo>
Bayesian_estimator::Bayesian_estimator() Bayesian_estimator::Bayesian_estimator()
{ {
@ -176,12 +176,12 @@ void Bayesian_estimator::update_sequential(const arma::vec& data, const arma::ve
Psi_prior = Psi_posterior; Psi_prior = Psi_posterior;
} }
arma::mat Bayesian_estimator::get_mu_est() arma::mat Bayesian_estimator::get_mu_est() const
{ {
return mu_est; return mu_est;
} }
arma::mat Bayesian_estimator::get_Psi_est() arma::mat Bayesian_estimator::get_Psi_est() const
{ {
return Psi_est; return Psi_est;
} }

View File

@ -69,8 +69,8 @@ public:
void update_sequential(const arma::vec& data); void update_sequential(const arma::vec& data);
void update_sequential(const arma::vec& data, const arma::vec& mu_prior_0, int kappa_prior_0, int nu_prior_0, const arma::mat& Psi_prior_0); void update_sequential(const arma::vec& data, const arma::vec& mu_prior_0, int kappa_prior_0, int nu_prior_0, const arma::mat& Psi_prior_0);
arma::mat get_mu_est(); arma::mat get_mu_est() const;
arma::mat get_Psi_est(); arma::mat get_Psi_est() const;
private: private:
arma::vec mu_est; arma::vec mu_est;