pub struct SymParams {
pub win: usize,
pub step: usize,
}Expand description
The parameters of the symmetry stage.
Fields§
§win: usizeMargin of curvature values kept on each side of a dyad. The reference uses 101.
step: usizeStride between dyads and between the mirrored pairs summed at each.
Implementations§
Source§impl SymParams
impl SymParams
Sourcepub fn lead_in(&self, params: &CurveParams) -> usize
pub fn lead_in(&self, params: &CurveParams) -> usize
How many bases at each end of a piece receive no symmetry score.
The symmetry stage consumes win curvature values on each side of a dyad, and each
curvature value already cost CurveParams::lead_in bases, so the two margins add.
Sourcepub fn score_count(&self, piece_len: usize, params: &CurveParams) -> usize
pub fn score_count(&self, piece_len: usize, params: &CurveParams) -> usize
How many symmetry scores a piece of piece_len bases yields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymParams
impl RefUnwindSafe for SymParams
impl Send for SymParams
impl Sync for SymParams
impl Unpin for SymParams
impl UnsafeUnpin for SymParams
impl UnwindSafe for SymParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more