File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
15791577float 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 (" \t Returning " , sqrt (std / numPts));
16021598
16031599 return sqrt (std / numPts);
16041600
You can’t perform that action at this time.
0 commit comments