pub struct SurvivalMarginalSlopeFrozenOffsetChart { /* private fields */ }Expand description
A nonlinear baseline chart over already-prepared marginal-slope offsets.
Construction subtracts the initial parametric baseline from the prepared offset channels exactly once. Candidate evaluations add a new baseline to that same frozen residual. Consequently candidate theta values cannot move any prepared time design, wiggle knot, penalty, or feasibility cone; only the three row-offset value channels move, with analytic first and second derivatives supplied by the same evaluation.
Implementations§
Source§impl SurvivalMarginalSlopeFrozenOffsetChart
impl SurvivalMarginalSlopeFrozenOffsetChart
pub fn new( age_entry: &Array1<f64>, age_exit: &Array1<f64>, initial_config: &SurvivalBaselineConfig, prepared_offset_entry: &Array1<f64>, prepared_offset_exit: &Array1<f64>, prepared_derivative_offset_exit: &Array1<f64>, ) -> Result<Self, String>
pub fn target(&self) -> SurvivalBaselineTarget
pub fn initial_theta(&self) -> &Array1<f64>
Sourcepub fn theta_bounds(&self) -> (&Array1<f64>, &Array1<f64>)
pub fn theta_bounds(&self) -> (&Array1<f64>, &Array1<f64>)
Declared finite domain of this frozen nonlinear chart. These are the same coordinate bounds used by the legacy standalone baseline solver, now owned by the chart so a joint solver and its terminal certificate cannot silently choose a different domain.
pub fn fixed_offsets(&self) -> (&Array1<f64>, &Array1<f64>, &Array1<f64>)
pub fn evaluate_initial( &self, ) -> Result<SurvivalMarginalSlopeOffsetGeometry, String>
pub fn evaluate( &self, theta: &Array1<f64>, ) -> Result<SurvivalMarginalSlopeOffsetGeometry, String>
Trait Implementations§
Source§impl Clone for SurvivalMarginalSlopeFrozenOffsetChart
impl Clone for SurvivalMarginalSlopeFrozenOffsetChart
Source§fn clone(&self) -> SurvivalMarginalSlopeFrozenOffsetChart
fn clone(&self) -> SurvivalMarginalSlopeFrozenOffsetChart
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 moreAuto Trait Implementations§
impl Freeze for SurvivalMarginalSlopeFrozenOffsetChart
impl RefUnwindSafe for SurvivalMarginalSlopeFrozenOffsetChart
impl Send for SurvivalMarginalSlopeFrozenOffsetChart
impl Sync for SurvivalMarginalSlopeFrozenOffsetChart
impl Unpin for SurvivalMarginalSlopeFrozenOffsetChart
impl UnsafeUnpin for SurvivalMarginalSlopeFrozenOffsetChart
impl UnwindSafe for SurvivalMarginalSlopeFrozenOffsetChart
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.