coupling, legacy and modern

- legacy: acoplamiento.fases_de_estudio + resumen (vendored unchanged);
  spindle and slow-wave events read through the contract columns, so
  either detector can feed it; in_slow_wave = --solo-en-onda.
- modern: slow-oscillation phase (MNE 0.5-2 Hz, scipy Hilbert, per run) at
  the sigma-envelope peak of each spindle; R from 200 subsamples of 30,
  excess over the chance floor, preferred angle, raw R.

Modern within 0.03 of legacy; phase-locked synthetic spindles give R > 0.8
at the trough in both; contract suite passes.
This commit is contained in:
AlbertoPMDM
2026-11-18 21:55:30 -06:00
parent 406944e134
commit d21ace9aea
18 changed files with 6228 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ MANIFEST: dict[str, tuple[str, tuple[str, ...]]] = {
"biomarkers/gradient": ("preproceso", ("eeg_io", "gradiente")),
"processes/slow_wave_staging": ("preproceso", ("eeg_io", "ondas_lentas")),
"biomarkers/slow_waves": ("preproceso", ("ondas_lentas",)),
"biomarkers/coupling": ("preproceso", ("eeg_io", "acoplamiento")),
}
SYS_PATH_LINE = "sys.path.insert(0, str(Path(__file__).resolve().parent))"