Enum net_ensembles::sampling::wang_landau::WangLandauMode
source · [−]pub enum WangLandauMode {
RefineOriginal,
Refine1T,
}
Expand description
Look at the paper
R. E. Belardinelli and V. D. Pereyra, Fast algorithm to calculate density of states,” Phys. Rev. E 75: 046701 (2007), DOI 10.1103/PhysRevE.75.046701
- This enum is to see, which mode is currently used
Variants
RefineOriginal
- Using original wang landau, i.e., refine every time when every bin in the histogram was hit
- refine: `log_f *= 0.5;
Refine1T
- Use 1/T approach
- refine each step by:
log_f = bin_count as f64 / step_count as f64
Implementations
sourceimpl WangLandauMode
impl WangLandauMode
sourcepub fn is_mode_original(&self) -> bool
pub fn is_mode_original(&self) -> bool
- true if self is
RefineOriginal
variant - false otherwise
sourcepub fn is_mode_1_t(&self) -> bool
pub fn is_mode_1_t(&self) -> bool
- true if self is
Refine1T
variant - false otherwise
Trait Implementations
sourceimpl Clone for WangLandauMode
impl Clone for WangLandauMode
sourcefn clone(&self) -> WangLandauMode
fn clone(&self) -> WangLandauMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WangLandauMode
impl Debug for WangLandauMode
sourceimpl<'de> Deserialize<'de> for WangLandauMode
impl<'de> Deserialize<'de> for WangLandauMode
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<WangLandauMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<WangLandauMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WangLandauMode> for WangLandauMode
impl PartialEq<WangLandauMode> for WangLandauMode
sourcefn eq(&self, other: &WangLandauMode) -> bool
fn eq(&self, other: &WangLandauMode) -> bool
sourceimpl Serialize for WangLandauMode
impl Serialize for WangLandauMode
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for WangLandauMode
impl Eq for WangLandauMode
impl StructuralEq for WangLandauMode
impl StructuralPartialEq for WangLandauMode
Auto Trait Implementations
impl RefUnwindSafe for WangLandauMode
impl Send for WangLandauMode
impl Sync for WangLandauMode
impl Unpin for WangLandauMode
impl UnwindSafe for WangLandauMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more