Skip to main content

sym_chunks

Function sym_chunks 

Source
pub fn sym_chunks(
    piece_len: usize,
    params: &CurveParams,
    sym: &SymParams,
    chunk_scores: usize,
) -> Vec<Chunk>
Expand description

Divide a piece into chunks of symmetry scores.

Same reasoning as chunks, with a wider margin: a dyad needs win curvature values on each side, and each of those needed lead_in bases of its own. Scoring the bases [p*step, (q-1)*step + 2*win + 2*lead_in + 1) yields exactly the symmetry scores [p, q), so the chunks tile the output without gap or overlap.