Skip to content

pop_newcrossf: Restore the cross-coherence options and Help control #1003

Done

Description

@arnodelorme

Restore the cross-coherence options and Help control. The continuous window measured 352 px high in MATLAB, 524 px before the fix and 352 px afterward. Stack base is #994.

Continuous

Epoched

Displacement

Time-frequency coherence

Across 2 native openings, the largest vertical control offset was 0.61 px (target 1 px). Numerical comparison of time-frequency coherence: 0/2 measured cases within tolerance.

Channel 1 and next: Maximum absolute difference 0.04857 on reference scale 0.8676.

Component 2 and next: Maximum absolute difference 0.05891 on reference scale 0.3542.

EEGLAB 5e0be870, EEGPrep after 666875b6, clean Linux checkouts. Part of #875.

The implementation is already in PR #1001.

Activity

  1. added
    function-parity
    on Dec 1, 2026
  2. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    #1001 (agent/issue-875-plot-newcrossf, stacked on #994) restores the options and Help control in pop_newcrossf.py, adds resources/help/newcrossf.md, and adds geometry cases and references. Its review check passed. The window part is done: 352 px against MATLAB 352 px, worst control offset 0.61 px.

    The numbers are still off: 0/2 cases are within tolerance (max abs diff 0.049 and 0.059), and #1001 does not touch the compute path.

    Relevant code

    Proposed next step

    Review and merge #1001 for the window part. Do not merge it as Fixes #1003: the function-parity label keeps this issue open until the numbers also match, so change it to Part of #1003.

    The numeric gap needs a separate core-function PR. Diagnosing it needs MATLAB, which this runner does not have, and the fix needs a MATLAB reference run plus approval from Arno Delorme. Likely causes, in order: differences in default winsize, padratio, freqs or timesout compared with newcrossf.m; how timefreq windows and pads the data; and averaging differences for the default phasecoher type. Narrow it down by comparing freqs, times and tf_x with the MATLAB timefreq output on the same input before comparing coherence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    function-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions