#[non_exhaustive]pub struct BayesianFosrResult {
pub beta_mean: FdMatrix,
pub beta_lower: FdMatrix,
pub beta_upper: FdMatrix,
pub fitted: FdMatrix,
pub residuals: FdMatrix,
pub sigma2_mean: Vec<f64>,
pub n_iter: usize,
pub burn_in: usize,
pub thin: usize,
pub ncomp: usize,
}Expand description
Result of Bayesian function-on-scalar regression via conjugate Gibbs (REG-06-04).
Posterior summaries are computed from thinned post-burn-in draws. Credible bands are pointwise (not simultaneous) quantiles over the retained draws.
Divergence from refund: uses FPCA score compression via fdata_to_pc_1d
rather than spline basis priors. Pointwise credible bands only (no simultaneous bands).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.beta_mean: FdMatrixPosterior mean coefficient functions β̄(t) (p × m_t).
beta_lower: FdMatrixPointwise 2.5% credible band (p × m_t).
beta_upper: FdMatrixPointwise 97.5% credible band (p × m_t).
fitted: FdMatrixPosterior-mean fitted values (n × m_t).
residuals: FdMatrixPosterior-mean residuals (n × m_t).
sigma2_mean: Vec<f64>Posterior mean σ²(t) across the response grid (length m_t).
n_iter: usizeNumber of Gibbs iterations retained (after burn-in, before thinning).
burn_in: usizeBurn-in iterations discarded.
thin: usizeThinning interval used.
ncomp: usizeFPC components used for score compression.
Trait Implementations§
Source§impl Clone for BayesianFosrResult
impl Clone for BayesianFosrResult
Source§fn clone(&self) -> BayesianFosrResult
fn clone(&self) -> BayesianFosrResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BayesianFosrResult
impl Debug for BayesianFosrResult
Source§impl PartialEq for BayesianFosrResult
impl PartialEq for BayesianFosrResult
impl StructuralPartialEq for BayesianFosrResult
Auto Trait Implementations§
impl Freeze for BayesianFosrResult
impl RefUnwindSafe for BayesianFosrResult
impl Send for BayesianFosrResult
impl Sync for BayesianFosrResult
impl Unpin for BayesianFosrResult
impl UnsafeUnpin for BayesianFosrResult
impl UnwindSafe for BayesianFosrResult
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
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
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>
self from the equivalent element of its
superset. Read moreSource§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).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.