pub struct McSpec {
pub problem: Problem,
pub tols: Vec<Tol>,
pub trials: usize,
pub seed: u64,
pub comp: DlsOpts,
pub sensitivity: bool,
pub comp_mode: CompMode,
pub inverse: Option<Inverse>,
}Expand description
モンテカルロの設定
Fields§
§problem: Problem評価関数(構成と項)。変数(Problem::vars)は補償子
tols: Vec<Tol>§trials: usize試行の数(0 なら感度だけ)
seed: u64§comp: DlsOpts補償子の DLS の設定(反復は少なめでよい)
sensitivity: bool公差ごとの感度も求める
comp_mode: CompMode補償のしかた
inverse: Option<Inverse>逆感度(None ならしない)。感度も求める
Implementations§
Source§impl McSpec
impl McSpec
Sourcepub fn draws(&self) -> Result<Draws>
pub fn draws(&self) -> Result<Draws>
試行のずれの抽選(lensbench_runs::Draws)。隣り合う Dist::DiscX・Dist::DiscY を組にする
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McSpec
impl !UnwindSafe for McSpec
impl Freeze for McSpec
impl Send for McSpec
impl Sync for McSpec
impl Unpin for McSpec
impl UnsafeUnpin for McSpec
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
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> ⓘ
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 more