Skip to content
Snippets Groups Projects
Commit c96ab5d2 authored by Christian Beckmann's avatar Christian Beckmann
Browse files

update Steves heuristic noise index calculation

parent 15e6a9b4
No related branches found
No related tags found
No related merge requests found
...@@ -260,8 +260,8 @@ int calc_freqindex(){ ...@@ -260,8 +260,8 @@ int calc_freqindex(){
tempVol.threshold(0.0); tempVol.threshold(0.0);
for(int ctr = 0; ctr < design.Ncols(); ctr++ ) for(int ctr = 0; ctr < design.Ncols(); ctr++ )
scores(1,ctr+1) = tempVol[ctr].percentile(0.99,mask); scores(1,ctr+1) = tempVol[ctr].percentile(0.99,mask);
scores-=scores.MinimumAbsoluteValue();
scores/=scores.MaximumAbsoluteValue(); scores/=scores.MaximumAbsoluteValue();
scores-=scores.MinimumAbsoluteValue();
if(debug.value()) cerr << " initial scores: " << scores << endl; if(debug.value()) cerr << " initial scores: " << scores << endl;
} }
scores = SP(scores,sum_ratio); scores = SP(scores,sum_ratio);
......
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