Skip to content

Commit b5ef30c

Browse files
committed
fix math typo
1 parent 22c2d08 commit b5ef30c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/discrete_blocks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ end
10101010
"""
10111011
ExponentialFilter(a = 0.1)
10121012
1013-
Exponential filtering (first-order filter) with input-output relation ``y(z) ~ (1 - a) y(z-1) + a u(z-1)``, transfer function
1013+
Exponential filtering (first-order filter) with input-output relation ``y(z) = (1 - a) y(z-1) + a u(z-1)``, transfer function
10141014
```math
10151015
Y(z) = \\dfrac{a}{1 - (1 - a) z^{-1}} U(z)
10161016
```
@@ -1042,7 +1042,7 @@ end
10421042
"""
10431043
MovingAverageFilter(N = 3)
10441044
1045-
Exponential filtering with input-output relation ``y(z) ~ sum(u(z-i) for i in 0:N-1) / N``.
1045+
Exponential filtering with input-output relation ``y(z) = sum(u(z-i) for i in 0:N-1) / N``.
10461046
10471047
Please note: this implementation of a moving average filter is not optimized for very large number of filter taps `N`.
10481048

0 commit comments

Comments
 (0)