pub struct Glued<Hist, T> { /* private fields */ }
Expand description
Implementations§
source§impl<Hist, T> Glued<Hist, T>
impl<Hist, T> Glued<Hist, T>
sourcepub fn new_unchecked(
encapsulating_histogram: Hist,
glued: Vec<f64>,
aligned: Vec<Vec<f64>>,
base: LogBase,
alignment: Vec<usize>,
stats: Option<GlueStats>
) -> Self
pub fn new_unchecked( encapsulating_histogram: Hist, glued: Vec<f64>, aligned: Vec<Vec<f64>>, base: LogBase, alignment: Vec<usize>, stats: Option<GlueStats> ) -> Self
Create a new Glued<Hist>
instance without checking anything
sourcepub fn set_stat_write_verbosity(&mut self, verbosity: GlueWriteVerbosity)
pub fn set_stat_write_verbosity(&mut self, verbosity: GlueWriteVerbosity)
Set the verbosity
- this decides on how and how many Statistics will be written by the write functions
- The default is
GlueWriteVerbosity::NoStats
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>]
pub fn aligned(&self) -> &[Vec<f64>]
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
source§impl<H, T> Glued<H, T>
impl<H, T> Glued<H, T>
sourcepub fn write<W: Write>(&self, writer: W) -> Result<()>
pub fn write<W: Write>(&self, writer: W) -> Result<()>
Write the Glued in a human readable format
- You probably want to use this ;)
sourcepub fn write_rescaled<W: Write>(
&self,
writer: W,
bin_size: f64,
starting_point: f64
) -> Result<()>
pub fn write_rescaled<W: Write>( &self, writer: W, bin_size: f64, starting_point: f64 ) -> Result<()>
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§
source§impl<'de, Hist, T> Deserialize<'de> for Glued<Hist, T>where
Hist: Deserialize<'de>,
impl<'de, Hist, T> Deserialize<'de> for Glued<Hist, T>where
Hist: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Hist, T> RefUnwindSafe for Glued<Hist, T>where
Hist: RefUnwindSafe,
T: RefUnwindSafe,
impl<Hist, T> Send for Glued<Hist, T>
impl<Hist, T> Sync for Glued<Hist, T>
impl<Hist, T> Unpin for Glued<Hist, T>
impl<Hist, T> UnwindSafe for Glued<Hist, T>where
Hist: UnwindSafe,
T: UnwindSafe,
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<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere
T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§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