Skip to content

Commit

Permalink
Fix ECG filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lorforlinux authored Dec 12, 2024
1 parent dcff2f3 commit 48acdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class EXGFilter {
case "fourteen":
case "twelve": // 500Hz
switch (type) {
case 1: - this.bitsPoints / 2// ECG Sampling rate: 500.0 Hz, frequency: 30.0 Hz.
case 1: // ECG Sampling rate: 500.0 Hz, frequency: 30.0 Hz.
// Filter is order 2, implemented as second-order sections (biquads).
this.x1 = output - (-1.47548044 * this.z1) - (0.58691951 * this.z2);
output = 0.02785977 * this.x1 + 0.05571953 * this.z1 + 0.02785977 * this.z2;
Expand Down

0 comments on commit 48acdc0

Please sign in to comment.