You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This can depend on `self` in situations where the number of parameters depends on the data itself, e.g. the number of groups in a hierarchical model.
64
64
fndimension(&self) -> usize;
65
65
66
-
/// Propose new parameters doing a stretch move based on the parameters `other` and the scale `z`
66
+
/// Compute new parameters by mapping the given closure `f` over all coordinate pairs
67
67
#[must_use]
68
-
fnpropose(&self,other:&Self,z:f64) -> Self;
68
+
fnmap<F>(&self,other:&Self,f:F) -> Self
69
+
where
70
+
F:Fn(f64,f64) -> f64;
69
71
}
70
72
71
73
/// Model parameters stored as an array of length `N` considered as an element of the vector space `R^N`
0 commit comments