Skip to content

Commit

Permalink
[rename] fix an equation type name
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Apr 29, 2022
1 parent eee2325 commit 775aa26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/fcarouge/kalman_equation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ namespace fcarouge
[[nodiscard]] inline constexpr auto extrapolate_state(const auto &x,
const auto &f)
{
using State = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;
using state = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;

return State{ f * x };
return state{ f * x };
}

[[nodiscard]] inline constexpr auto
extrapolate_state(const auto &x, const auto &f, const auto &g, const auto &u)
{
using State = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;
using state = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;

return State{ f * x + g * u };
return state{ f * x + g * u };
}

template <template <typename> class Transpose>
Expand Down Expand Up @@ -103,9 +103,9 @@ inline constexpr void predict(auto &x, auto &p, const auto &f, const auto &q,
[[nodiscard]] inline constexpr auto update_state(const auto &x, const auto &k,
const auto &z, const auto &h)
{
using State = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;
using state = std::remove_reference_t<std::remove_cv_t<decltype(x)>>;

return State{ x + k * (z - h * x) };
return state{ x + k * (z - h * x) };
}

template <template <typename> typename Transpose,
Expand Down

0 comments on commit 775aa26

Please sign in to comment.