INNER CODE UNIT · Rust

in

google/best · src/intervals.rs:86

    for i in (start..end).step_by(win_len) {
        let lo;
        let hi;
        if strand_rev {
            hi = end - (i - start);
            lo = hi.saturating_sub(win_len).max(start);
        } else {
            lo = i;
            hi = (i + win_len).min(end);
        };

        if pos {
            res.push(FeatureInterval {
                start: lo,
                stop: hi,
                val: format!("window_{}_pos_{}", win_len, i - start),
            });
        } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…