pub struct GaussMarkov {
pub tau: Duration,
pub process_noise: f64,
pub constant: Option<f64>,
pub prev_epoch: Option<Epoch>,
pub init_sample: Option<f64>,
}Expand description
A first order Gauss-Markov process for modeling biases as described in section 5.2.4 of the NASA Best Practices for Navigation Filters (D’Souza et al.).
The process is defined by the following stochastic differential equation:
\dot{b(t)} = -1/τ * b(t) + w(t)
Programmatically, it’s calculated by sampling from b(t) ~ 𝓝(0, p_b(t)), where
p_b(t) = exp((-2 / τ) * (t - t_0)) * p_b(t_0) + s(t - t_0)
s(t - t_0) = ((q * τ) / 2) * (1 - exp((-2 / τ) * (t - t_0)))
Fields§
§tau: DurationThe time constant, tau gives the correlation time, or the time over which the intensity of the time correlation will fade to 1/e of its prior value. (This is sometimes incorrectly referred to as the “half-life” of the process.)
process_noise: f64§constant: Option<f64>An optional constant offset on top of the noise, defaults to zero.
prev_epoch: Option<Epoch>Epoch of the previous realization, used to compute the time delta for the process noise.
init_sample: Option<f64>Sample of previous realization
Implementations§
Source§impl GaussMarkov
impl GaussMarkov
Sourcepub fn new(tau: Duration, process_noise: f64) -> Result<Self, ConfigError>
pub fn new(tau: Duration, process_noise: f64) -> Result<Self, ConfigError>
Create a new first order Gauss-Markov process.
§Arguments
tau- The time constant, tau gives the correlation time, or the time over which the intensity of the time correlation will fade to 1/e of its prior value.process_noise- process noise of the system.
Sourcepub fn default_range_km() -> Self
pub fn default_range_km() -> Self
Default Gauss Markov noise of the Deep Space Network, as per DESCANSO Chapter 3, Table 3-3. Used the range value of 60 cm over a 60 second average.
Sourcepub fn default_doppler_km_s() -> Self
pub fn default_doppler_km_s() -> Self
Default Gauss Markov noise of the Deep Space Network, as per DESCANSO Chapter 3, Table 3-3. Used the Doppler value of 0.03 mm/s over a 60 second average.
Trait Implementations§
Source§impl Clone for GaussMarkov
impl Clone for GaussMarkov
Source§fn clone(&self) -> GaussMarkov
fn clone(&self) -> GaussMarkov
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConfigRepr for GaussMarkov
impl ConfigRepr for GaussMarkov
Source§fn load<P>(path: P) -> Result<Self, ConfigError>
fn load<P>(path: P) -> Result<Self, ConfigError>
Source§fn load_many<P>(path: P) -> Result<Vec<Self>, ConfigError>
fn load_many<P>(path: P) -> Result<Vec<Self>, ConfigError>
Source§fn load_named<P>(path: P) -> Result<BTreeMap<String, Self>, ConfigError>
fn load_named<P>(path: P) -> Result<BTreeMap<String, Self>, ConfigError>
Source§fn loads_many(data: &str) -> Result<Vec<Self>, ConfigError>
fn loads_many(data: &str) -> Result<Vec<Self>, ConfigError>
Source§fn loads_named(data: &str) -> Result<BTreeMap<String, Self>, ConfigError>
fn loads_named(data: &str) -> Result<BTreeMap<String, Self>, ConfigError>
Source§impl Debug for GaussMarkov
impl Debug for GaussMarkov
Source§impl<'a> Decode<'a> for GaussMarkov
impl<'a> Decode<'a> for GaussMarkov
Source§impl<'de> Deserialize<'de> for GaussMarkov
impl<'de> Deserialize<'de> for GaussMarkov
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for GaussMarkov
impl Display for GaussMarkov
Source§impl Encode for GaussMarkov
impl Encode for GaussMarkov
Source§fn encoded_len(&self) -> Result<Length>
fn encoded_len(&self) -> Result<Length>
Source§fn encode(&self, encoder: &mut impl Writer) -> Result<()>
fn encode(&self, encoder: &mut impl Writer) -> Result<()>
Writer].§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
Source§impl<'a, 'py> FromPyObject<'a, 'py> for GaussMarkovwhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for GaussMarkovwhere
Self: Clone,
Source§impl<'py> IntoPyObject<'py> for GaussMarkov
impl<'py> IntoPyObject<'py> for GaussMarkov
Source§type Target = GaussMarkov
type Target = GaussMarkov
Source§type Output = Bound<'py, <GaussMarkov as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <GaussMarkov as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl Mul<f64> for GaussMarkov
impl Mul<f64> for GaussMarkov
Source§impl MulAssign<f64> for GaussMarkov
impl MulAssign<f64> for GaussMarkov
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
*= operation. Read moreSource§impl PartialEq for GaussMarkov
impl PartialEq for GaussMarkov
Source§fn eq(&self, other: &GaussMarkov) -> bool
fn eq(&self, other: &GaussMarkov) -> bool
self and other values to be equal, and is used by ==.Source§impl PyClass for GaussMarkov
impl PyClass for GaussMarkov
Source§impl PyClassImpl for GaussMarkov
impl PyClassImpl for GaussMarkov
Source§const MODULE: Option<&str> = ::core::option::Option::None
const MODULE: Option<&str> = ::core::option::Option::None
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// A first order Gauss-Markov process for modeling biases as described in section 5.2.4 of the NASA Best Practices for Navigation Filters (D'Souza et al.).
///
/// The process is defined by the following stochastic differential equation:
///
/// \dot{b(t)} = -1/τ * b(t) + w(t)
///
/// Programmatically, it's calculated by sampling from b(t) ~ 𝓝(0, p_b(t)), where
///
/// p_b(t) = exp((-2 / τ) * (t - t_0)) * p_b(t_0) + s(t - t_0)
///
/// s(t - t_0) = ((q * τ) / 2) * (1 - exp((-2 / τ) * (t - t_0)))
const RAW_DOC: &'static CStr = /// A first order Gauss-Markov process for modeling biases as described in section 5.2.4 of the NASA Best Practices for Navigation Filters (D'Souza et al.). /// /// The process is defined by the following stochastic differential equation: /// /// \dot{b(t)} = -1/τ * b(t) + w(t) /// /// Programmatically, it's calculated by sampling from b(t) ~ 𝓝(0, p_b(t)), where /// /// p_b(t) = exp((-2 / τ) * (t - t_0)) * p_b(t_0) + s(t - t_0) /// /// s(t - t_0) = ((q * τ) / 2) * (1 - exp((-2 / τ) * (t - t_0)))
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<GaussMarkov as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<GaussMarkov>
type Layout = <<GaussMarkov as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<GaussMarkov>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
type Inventory = Pyo3MethodsInventoryForGaussMarkov
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyTypeInfo for GaussMarkov
impl PyTypeInfo for GaussMarkov
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.Source§impl Serialize for GaussMarkov
impl Serialize for GaussMarkov
Source§impl Stochastics for GaussMarkov
impl Stochastics for GaussMarkov
impl Copy for GaussMarkov
impl DerefToPyAny for GaussMarkov
impl StructuralPartialEq for GaussMarkov
Auto Trait Implementations§
impl Freeze for GaussMarkov
impl RefUnwindSafe for GaussMarkov
impl Send for GaussMarkov
impl Sync for GaussMarkov
impl Unpin for GaussMarkov
impl UnsafeUnpin for GaussMarkov
impl UnwindSafe for GaussMarkov
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromDhall for Twhere
T: DeserializeOwned,
impl<T> FromDhall for Twhere
T: DeserializeOwned,
fn from_dhall(v: &Value) -> Result<T, Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self into a Python object. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
isinstance and issubclass function. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.