Commit a6644222 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

changed gain renomrmalization (factor 1000) in normalizeGain2 (file visi2ntac.cc), Reza 13/04/2015

parent 6b889c8d
......@@ -226,7 +226,8 @@ Vector normalizeGain2(Matrix& gain)
Vector gnorm(gain.NRows());
for(sa_size_t r=0;r<gain.NRows();r++) {
double gn=gain.Row(r).Sum();
gain.Row(r) /= gn;
double fcg=1000./gn; // we decide arbitray to renormalize the gain to have the sum[gains(i)]=1000
gain.Row(r) *= fcg;
sprintf(buff,"GNORM%d",(int)r);
gain.Info()[buff]=gn;
gnorm(r)=gn;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment