-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ma.zc() is wrong in that it can't detect the crossing if the input signal is zero in between, for example process = os.oscrs(F) : *(abs > 1/2) : ma.zc; will never output 1. The new function ba.tAndH() looks useful on its own, for example we can do zc_threshold(t) = ba.tAndH(abs >= t) <: *(mem) < 0; which reports the "significant" changes from -t to +t or vice versa. While at it, change ba.time() to eliminate the unnecessary -(1) and generate a slightly better code.
- Loading branch information
1 parent
2134771
commit 05bd614
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters