mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
fixed bug in Gaussian window introduced 2019
Typo in commit: 98a5a204d1
This commit is contained in:
parent
1aa398c285
commit
0427f29ce5
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ public:
|
|||
Gauss(TYPE o) : o(o) {}
|
||||
TYPE operator () (int n, int N)
|
||||
{
|
||||
return exp(- TYPE(0.5) * pow((TYPE(n) - TYPE(N - 0) / TYPE(2)) / (o * TYPE(N - 1) / TYPE(2)), TYPE(2)));
|
||||
return exp(- TYPE(0.5) * pow((TYPE(n) - TYPE(N - 1) / TYPE(2)) / (o * TYPE(N - 1) / TYPE(2)), TYPE(2)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue