pub struct Llr(/* private fields */);Expand description
Log-likelihood ratios, one row per stream (positive favours 0, see the module documentation).
Implementations§
Source§impl Llr
impl Llr
Sourcepub fn stream_view(&self, i: usize) -> ArrayView1<'_, f64>
pub fn stream_view(&self, i: usize) -> ArrayView1<'_, f64>
Stream i as an ndarray view.
Sourcepub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, f64>
pub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, f64>
Stream i as a mutable ndarray view.
Sourcepub fn set_stream(&mut self, x: &[f64])
pub fn set_stream(&mut self, x: &[f64])
Make self the single stream x, reusing its storage when the length is
unchanged (ADR 0011).
Sourcepub fn assign(&mut self, a: &Array2<f64>)
pub fn assign(&mut self, a: &Array2<f64>)
Make self a copy of a, reusing its storage when the shape is
unchanged (ADR 0011).
Sourcepub fn stream_mut(&mut self, i: usize) -> &mut [f64]
pub fn stream_mut(&mut self, i: usize) -> &mut [f64]
Stream i as a mutable slice.
Sourcepub fn as_slice_mut(&mut self) -> &mut [f64]
pub fn as_slice_mut(&mut self) -> &mut [f64]
All the elements, stream after stream, mutable.
Sourcepub fn as_array_mut(&mut self) -> &mut Array2<f64>
pub fn as_array_mut(&mut self) -> &mut Array2<f64>
The underlying array, mutable.
Trait Implementations§
impl StructuralPartialEq for Llr
Auto Trait Implementations§
impl Forget for Llr
impl Freeze for Llr
impl RefUnwindSafe for Llr
impl Send for Llr
impl Sync for Llr
impl Unpin for Llr
impl UnsafeUnpin for Llr
impl UnwindSafe for Llr
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