From 14ca50edb249d5f4ef621903259d955deb3a2fc3 Mon Sep 17 00:00:00 2001 From: Davit Grigoryan Date: Thu, 9 Apr 2026 12:25:24 -0700 Subject: public release v1.0 --- TapTogglingAlgos/Threshold.m | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 TapTogglingAlgos/Threshold.m (limited to 'TapTogglingAlgos/Threshold.m') diff --git a/TapTogglingAlgos/Threshold.m b/TapTogglingAlgos/Threshold.m new file mode 100644 index 0000000..e81f10b --- /dev/null +++ b/TapTogglingAlgos/Threshold.m @@ -0,0 +1,5 @@ +function mask = Threshold(taps, thresholdPercent, ~) + mask = ones(size(taps)); + maxTapVal = max(abs(taps)); + mask(abs(taps) < thresholdPercent*maxTapVal) = 0; +end \ No newline at end of file -- cgit v1.3