Skip to content

Commit

Permalink
hot fix for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
IFeelBloated committed May 15, 2020
1 parent d547e77 commit f3c0644
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Overlap.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <cmath>
#include <cstdint>

constexpr auto M_PI = 3.1415926535897932384626433832795;
constexpr auto MV_PI = 3.1415926535897932384626433832795;
constexpr auto OW_TL = 0;
constexpr auto OW_TM = 1;
constexpr auto OW_TR = 2;
Expand Down Expand Up @@ -38,7 +38,7 @@ class OverlapWindows {
fWin1UVxlast = new double[nx];
for (int32_t i = 0; i < ox; i++)
{
fWin1UVx[i] = cos(M_PI * (i - ox + 0.5f) / (ox * 2));
fWin1UVx[i] = cos(MV_PI * (i - ox + 0.5f) / (ox * 2));
fWin1UVx[i] = fWin1UVx[i] * fWin1UVx[i];// left window (rised cosine)
fWin1UVxfirst[i] = 1; // very first window
fWin1UVxlast[i] = fWin1UVx[i]; // very last
Expand All @@ -51,7 +51,7 @@ class OverlapWindows {
}
for (int32_t i = nx - ox; i < nx; i++)
{
fWin1UVx[i] = cos(M_PI * (i - nx + ox + 0.5f) / (ox * 2));
fWin1UVx[i] = cos(MV_PI * (i - nx + ox + 0.5f) / (ox * 2));
fWin1UVx[i] = fWin1UVx[i] * fWin1UVx[i];// right window (falled cosine)
fWin1UVxfirst[i] = fWin1UVx[i]; // very first window
fWin1UVxlast[i] = 1; // very last
Expand All @@ -62,7 +62,7 @@ class OverlapWindows {
fWin1UVylast = new double[ny];
for (int32_t i = 0; i < oy; i++)
{
fWin1UVy[i] = cos(M_PI * (i - oy + 0.5f) / (oy * 2));
fWin1UVy[i] = cos(MV_PI * (i - oy + 0.5f) / (oy * 2));
fWin1UVy[i] = fWin1UVy[i] * fWin1UVy[i];// left window (rised cosine)
fWin1UVyfirst[i] = 1; // very first window
fWin1UVylast[i] = fWin1UVy[i]; // very last
Expand All @@ -75,7 +75,7 @@ class OverlapWindows {
}
for (int32_t i = ny - oy; i < ny; i++)
{
fWin1UVy[i] = cos(M_PI * (i - ny + oy + 0.5f) / (oy * 2));
fWin1UVy[i] = cos(MV_PI * (i - ny + oy + 0.5f) / (oy * 2));
fWin1UVy[i] = fWin1UVy[i] * fWin1UVy[i];// right window (falled cosine)
fWin1UVyfirst[i] = fWin1UVy[i]; // very first window
fWin1UVylast[i] = 1; // very last
Expand Down

0 comments on commit f3c0644

Please sign in to comment.