Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
a6644222
Commit
a6644222
authored
Apr 13, 2015
by
Reza ANSARI
Browse files
changed gain renomrmalization (factor 1000) in normalizeGain2 (file visi2ntac.cc), Reza 13/04/2015
parent
6b889c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
rdvisip4.cc
rdvisip4.cc
+2
-1
No files found.
rdvisip4.cc
View file @
a6644222
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment