pub struct GaussPhi { /* private fields */ }Expand description
A Gaussian potential.
Implementations§
Trait Implementations§
Source§impl AbsDiffEq for GaussPhi
impl AbsDiffEq for GaussPhi
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq.Source§impl DivAssign<&GaussPhi> for GaussPhi
impl DivAssign<&GaussPhi> for GaussPhi
Source§fn div_assign(&mut self, rhs: &GaussPhi)
fn div_assign(&mut self, rhs: &GaussPhi)
Performs the
/= operation. Read moreSource§impl Labelled for GaussPhi
impl Labelled for GaussPhi
Source§fn label_to_index(&self, x: &str) -> usize
fn label_to_index(&self, x: &str) -> usize
Return the variable index for a given label. Read more
Source§fn index_to_label(&self, x: usize) -> &str
fn index_to_label(&self, x: usize) -> &str
Return the label for a given variable index. Read more
Source§fn index_to(&self, x: usize, other: &Labels) -> usize
fn index_to(&self, x: usize, other: &Labels) -> usize
Maps an index from this model to another model with the same label. Read more
Source§fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Set<usize>
fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Set<usize>
Maps a set of indices from this model to another model with the same labels. Read more
Source§impl MulAssign<&GaussPhi> for GaussPhi
impl MulAssign<&GaussPhi> for GaussPhi
Source§fn mul_assign(&mut self, rhs: &GaussPhi)
fn mul_assign(&mut self, rhs: &GaussPhi)
Performs the
*= operation. Read moreSource§impl Phi for GaussPhi
impl Phi for GaussPhi
Source§type Parameters = GaussPhiK
type Parameters = GaussPhiK
The type of the parameters.
Source§fn parameters(&self) -> &Self::Parameters
fn parameters(&self) -> &Self::Parameters
Returns the parameters. Read more
Source§fn parameters_size(&self) -> usize
fn parameters_size(&self) -> usize
Returns the parameters size. Read more
Source§fn condition(&self, e: &Self::Evidence) -> Self
fn condition(&self, e: &Self::Evidence) -> Self
Conditions the potential on a set of variables. Read more
Source§fn marginalize(&self, x: &Set<usize>) -> Self
fn marginalize(&self, x: &Set<usize>) -> Self
Marginalizes the potential over a set of variables. Read more
Source§impl RelativeEq for GaussPhi
impl RelativeEq for GaussPhi
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq.Auto Trait Implementations§
impl Freeze for GaussPhi
impl RefUnwindSafe for GaussPhi
impl Send for GaussPhi
impl Sync for GaussPhi
impl Unpin for GaussPhi
impl UnwindSafe for GaussPhi
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<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