pub struct TdrHat { /* private fields */ }Expand description
Built TDR hat function; immutable after construction.
Implementations§
Source§impl TdrHat
impl TdrHat
Sourcepub fn try_build<P, D>(
pdf: &P,
dpdf: &D,
opts: TdrOptions,
) -> Result<Self, BuildError>
pub fn try_build<P, D>( pdf: &P, dpdf: &D, opts: TdrOptions, ) -> Result<Self, BuildError>
Build the hat function from PDF and dPDF at construction time.
pub fn support(&self) -> Interval
pub fn sample_with_rng<P: Pdf, R: Rng + ?Sized>( &self, pdf: &P, rng: &mut R, ) -> Result<f64, SampleError>
Auto Trait Implementations§
impl Freeze for TdrHat
impl RefUnwindSafe for TdrHat
impl Send for TdrHat
impl Sync for TdrHat
impl Unpin for TdrHat
impl UnsafeUnpin for TdrHat
impl UnwindSafe for TdrHat
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