Skip to content

find_steps algorithm: handle 2 edge cases where jumps were missed#5

Open
ehoppmann wants to merge 4 commits intothomasbkahn:masterfrom
ehoppmann:master
Open

find_steps algorithm: handle 2 edge cases where jumps were missed#5
ehoppmann wants to merge 4 commits intothomasbkahn:masterfrom
ehoppmann:master

Conversation

@ehoppmann
Copy link
Copy Markdown

Edge cases addressed:

  1. Filtered data switching sign while remaining greater than the threshold.
  2. Multiple steps occur while filtered data remains above threshold.

Created test methods to verify that jumps are identified in both of these cases.

Edge case addressed: where data skips from being greater than the threshold
on one side (positive or negative) to the opposite side without any transition
points. Addressed by manually inserting -1 and 1 values into ap_diff so that
these transitions will be accounted for. Added test for this case.
Include dni in range from upi to dni (previously stopped at dni - 1)
Handles cases where filtered data remains above threshold while multiple
step changes occur by checking number of zero crossing of first derivative
of filtered data and iterating through regions between zero crossings
* Address edge case where data can skip from being > threshold with one sign
to the opposite sign without any transition points
* Address edge case where ap_dif can become inconsistent during correction from
skipping from pos > threshold to neg > threshold if there are two overlapping jumps
* Address edge case where first threshold crossing is a down instead of an up
* Handle cases where there are multiple jumps while filtered data > threshold (on
the same side) by examining first derivative zero crossings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant