Skip to content

Commit 24e4db0

Browse files
committed
chore: cleaning variables
1 parent 36365ab commit 24e4db0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,8 +1560,6 @@ float LfpDisplaySplitter::getMean(int chan)
15601560

15611561
for (int samp = displayBufferIndex[chan] - totalPoints; samp < displayBufferIndex[chan]; samp += 1)
15621562
{
1563-
float sample = 0;
1564-
15651563
if (samp >= 0) // read the beginning of the buffer
15661564
sample = *displayBuffer->getReadPointer(chan, samp);
15671565
else // read the end of the buffer if negative index
@@ -1579,6 +1577,7 @@ float LfpDisplaySplitter::getMean(int chan)
15791577
float LfpDisplaySplitter::getStd(int chan)
15801578
{
15811579
float std = 0.0f;
1580+
float sample = 0.0f;
15821581

15831582
float mean = getMean(chan);
15841583
float numPts = 1;
@@ -1588,8 +1587,6 @@ float LfpDisplaySplitter::getStd(int chan)
15881587

15891588
for (int samp = displayBufferIndex[chan] - totalPoints; samp < displayBufferIndex[chan]; samp += 1)
15901589
{
1591-
float sample = 0;
1592-
15931590
if (samp >= 0) // read the beginning of the buffer
15941591
sample = *displayBuffer->getReadPointer(chan, samp);
15951592
else // read the end of the buffer if negative index
@@ -1598,7 +1595,6 @@ float LfpDisplaySplitter::getStd(int chan)
15981595
std += pow((sample - mean),2);
15991596
numPts++;
16001597
}
1601-
LOGD("\tReturning ", sqrt(std / numPts));
16021598

16031599
return sqrt(std / numPts);
16041600

0 commit comments

Comments
 (0)