Skip to content
Snippets Groups Projects
Commit 95bea24c authored by Mark Woolrich's avatar Mark Woolrich
Browse files

*** empty log message ***

parent 28c5bc06
No related branches found
No related tags found
No related merge requests found
...@@ -88,12 +88,21 @@ namespace TACO { ...@@ -88,12 +88,21 @@ namespace TACO {
preThresholdPositions.ReSize(numSeries); preThresholdPositions.ReSize(numSeries);
float m = 0; float m = 0,s = 0;
for(int i = 1; i <= numSeries; i++) for(int i = 1; i <= numSeries; i++)
{ {
m = MISCMATHS::mean(getSeries(i)); m = MISCMATHS::mean(getSeries(i));
s = MISCMATHS::var(getSeries(i));
if(m > thresh) /*
if(m > thresh && s == 0.0)
{
cerr << "m = " << m << endl;
cerr << "s = " << s << endl;
cerr << "i = " << i << endl;
cerr << "j = " << j+1 << endl;
}
*/
if(m > thresh && s > 0.0)
{ {
j++; j++;
preThresholdPositions(j) = i; preThresholdPositions(j) = i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment