pub struct PeriodicTransform<T = f64, B = NalgebraProvider>where
T: RealScalar,
B: LinearAlgebra<T>,{ /* private fields */ }Expand description
Component-wise periodic coordinate transform for optimization.
Periodic coordinates are represented internally on the real line and canonically wrapped into half-open external intervals. This repeated lift is not a proper target for MCMC sampling.
Implementations§
Source§impl<T, B> PeriodicTransform<T, B>where
T: RealScalar,
B: LinearAlgebra<T>,
impl<T, B> PeriodicTransform<T, B>where
T: RealScalar,
B: LinearAlgebra<T>,
Sourcepub fn new<I>(intervals: I) -> GaneshResult<Self>
pub fn new<I>(intervals: I) -> GaneshResult<Self>
Construct from one optional periodic interval per coordinate.
None leaves a coordinate unchanged. Periodic intervals are canonicalized to
[lower, upper).
§Errors
Returns a configuration error for an empty list, no periodic coordinates, non-finite endpoints, or intervals whose endpoints are not ordered.
Trait Implementations§
Source§impl<T, B> Clone for PeriodicTransform<T, B>
impl<T, B> Clone for PeriodicTransform<T, B>
Source§fn clone(&self) -> PeriodicTransform<T, B>
fn clone(&self) -> PeriodicTransform<T, B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, B> Debug for PeriodicTransform<T, B>
impl<T, B> Debug for PeriodicTransform<T, B>
Source§impl<T, B> Transform<T, B> for PeriodicTransform<T, B>where
T: RealScalar,
B: LinearAlgebra<T>,
impl<T, B> Transform<T, B> for PeriodicTransform<T, B>where
T: RealScalar,
B: LinearAlgebra<T>,
Source§fn to_external(&self, internal: &Vector<T, B>) -> Vector<T, B>
fn to_external(&self, internal: &Vector<T, B>) -> Vector<T, B>
Convert internal coordinates to user-facing external coordinates.
Source§fn to_internal(&self, external: &Vector<T, B>) -> Vector<T, B>
fn to_internal(&self, external: &Vector<T, B>) -> Vector<T, B>
Convert external coordinates to internal coordinates.
Source§fn to_external_jacobian(&self, internal: &Vector<T, B>) -> Matrix<T, B>
fn to_external_jacobian(&self, internal: &Vector<T, B>) -> Matrix<T, B>
Jacobian of
to_external at internal.Source§fn to_external_component_hessian(
&self,
_component: usize,
internal: &Vector<T, B>,
) -> Matrix<T, B>
fn to_external_component_hessian( &self, _component: usize, internal: &Vector<T, B>, ) -> Matrix<T, B>
Hessian of external component
component at internal.Source§fn then<X>(self, outer: X) -> TransformChain<Self, X>
fn then<X>(self, outer: X) -> TransformChain<Self, X>
Apply this transform first and
outer second.Source§fn parameter_bounds(&self) -> Option<&[ScalarBound<T>]>
fn parameter_bounds(&self) -> Option<&[ScalarBound<T>]>
Return user-facing parameter bounds when this transform represents bounds.
Auto Trait Implementations§
impl<T, B> Freeze for PeriodicTransform<T, B>
impl<T, B> RefUnwindSafe for PeriodicTransform<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for PeriodicTransform<T, B>
impl<T, B> Sync for PeriodicTransform<T, B>
impl<T, B> Unpin for PeriodicTransform<T, B>
impl<T, B> UnsafeUnpin for PeriodicTransform<T, B>
impl<T, B> UnwindSafe for PeriodicTransform<T, B>where
B: UnwindSafe,
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.