Struct net_ensembles::sampling::glue::ReplicaGlued
source · [−]pub struct ReplicaGlued<Hist> { /* private fields */ }
Expand description
Implementations
sourceimpl<Hist> ReplicaGlued<Hist>
impl<Hist> ReplicaGlued<Hist>
sourcepub fn new_unchecked(
encapsulating_histogram: Hist,
glued: Vec<f64, Global>,
aligned: Vec<Vec<f64, Global>, Global>,
base: LogBase,
alignment: Vec<usize, Global>
) -> ReplicaGlued<Hist>
pub fn new_unchecked(
encapsulating_histogram: Hist,
glued: Vec<f64, Global>,
aligned: Vec<Vec<f64, Global>, Global>,
base: LogBase,
alignment: Vec<usize, Global>
) -> ReplicaGlued<Hist>
Create a new ReplicaGlued<Hist>
instance without checking anything
sourcepub fn glued(&self) -> &[f64]
pub fn glued(&self) -> &[f64]
Returns Slice which represents the glued logarithmic probability density
The base of the logarithm can be found via self.base()
sourcepub fn aligned(&self) -> &[Vec<f64, Global>]
pub fn aligned(&self) -> &[Vec<f64, Global>]
Get alignment slice
- Mostly used for internal things
sourcepub fn encapsulating_hist(&self) -> &Hist
pub fn encapsulating_hist(&self) -> &Hist
sourcepub fn switch_base(&mut self)
pub fn switch_base(&mut self)
Change from Base 10 to Base E or the other way round
sourceimpl<T> ReplicaGlued<HistogramFast<T>>where
T: PrimInt + Display + HasUnsignedVersion,
<T as HasUnsignedVersion>::Unsigned: Bounded + HasUnsignedVersion<LeBytes = <T as HasUnsignedVersion>::LeBytes> + WrappingAdd + ToPrimitive + Sub<<T as HasUnsignedVersion>::Unsigned, Output = <T as HasUnsignedVersion>::Unsigned>,
impl<T> ReplicaGlued<HistogramFast<T>>where
T: PrimInt + Display + HasUnsignedVersion,
<T as HasUnsignedVersion>::Unsigned: Bounded + HasUnsignedVersion<LeBytes = <T as HasUnsignedVersion>::LeBytes> + WrappingAdd + ToPrimitive + Sub<<T as HasUnsignedVersion>::Unsigned, Output = <T as HasUnsignedVersion>::Unsigned>,
sourceimpl<T> ReplicaGlued<HistogramFast<T>>
impl<T> ReplicaGlued<HistogramFast<T>>
sourcepub fn write_rescaled<W>(
&self,
writer: W,
bin_size: f64,
starting_point: f64
) -> Result<(), Error>where
W: Write,
pub fn write_rescaled<W>(
&self,
writer: W,
bin_size: f64,
starting_point: f64
) -> Result<(), Error>where
W: Write,
Write the normalized probability density function
The function will be normalized by using the binsize you specify (uniform binsize is assumed).
Then it will write the merged log probability as well as the intervals into the writer you specified
Trait Implementations
sourceimpl<Hist> Clone for ReplicaGlued<Hist>where
Hist: Clone,
impl<Hist> Clone for ReplicaGlued<Hist>where
Hist: Clone,
sourcefn clone(&self) -> ReplicaGlued<Hist>
fn clone(&self) -> ReplicaGlued<Hist>
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<'de, Hist> Deserialize<'de> for ReplicaGlued<Hist>where
Hist: Deserialize<'de>,
impl<'de, Hist> Deserialize<'de> for ReplicaGlued<Hist>where
Hist: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaGlued<Hist>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaGlued<Hist>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<Hist> Serialize for ReplicaGlued<Hist>where
Hist: Serialize,
impl<Hist> Serialize for ReplicaGlued<Hist>where
Hist: Serialize,
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
Auto Trait Implementations
impl<Hist> RefUnwindSafe for ReplicaGlued<Hist>where
Hist: RefUnwindSafe,
impl<Hist> Send for ReplicaGlued<Hist>where
Hist: Send,
impl<Hist> Sync for ReplicaGlued<Hist>where
Hist: Sync,
impl<Hist> Unpin for ReplicaGlued<Hist>where
Hist: Unpin,
impl<Hist> UnwindSafe for ReplicaGlued<Hist>where
Hist: UnwindSafe,
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