Skip to content
Snippets Groups Projects

add an example to study the _recoding inbreeding_ phenomenon

Merged STEVAN Antoine requested to merge recoding-inbreeding into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -4,7 +4,7 @@
/// const NB_BYTES = 1_024 * 10
/// const K = 10
/// const N = 2 * $K
/// const NB_MEASUREMENTS = 100
/// const NB_MEASUREMENTS = 1_000
/// const MAX_T = 150
///
/// cargo run --example inbreeding -- ...[
@@ -42,7 +42,7 @@
///
/// use std repeat
///
/// let raw = $data | update inbreeding { take ($l - $w + 1)}
/// # let raw = $data | update inbreeding { take ($l - $w + 1)}
/// let smooth = $data | update inbreeding { prepend (1 | repeat $w) | window $w | each { math avg } }
///
/// $smooth
@@ -50,7 +50,7 @@
/// let r = if $it.r == $k { "k" } else { $"k - ($k - $it.r)" }
/// $"$r = ($r)$"
/// }
/// | append ($raw | insert name null | insert style { line: { alpha: 0.1 } })
/// # | append ($raw | insert name null | insert style { line: { alpha: 0.1 } })
/// | update inbreeding {|it|
/// let l = $it.inbreeding | length
/// $it.inbreeding | wrap y | merge (seq 1 $l | wrap x) | insert e 0
Loading