Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
22fa28c2
Commit
22fa28c2
authored
Jan 14, 2019
by
thomas.forbriger
Browse files
libpsdxx [WP]: adjust test program to report center frequency
parent
1cfc3e47
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/testlogtaper.gpt
View file @
22fa28c2
...
...
@@ -27,5 +27,5 @@ set key left
set title 'LogTaper'
set xlabel 'frequency / Hz'
set ylabel 'taper value'
plot 'logtaper.xxx' skip 1
2
u 2:3 w l
plot 'logtaper.xxx' skip 1
1
u 2:3 w l
# EOF
src/libs/libpsdxx/testpsdxx.cc
View file @
22fa28c2
...
...
@@ -159,12 +159,12 @@ int main(int iargc, char* argv[])
CODE
(
psd
::
TDseries
logf
=
psd
::
log_frequency
(
0.1
,
nsamples
,
6
)
);
CODE
(
psd
::
helper
::
LogTaper
logt
(
logf
,
opt
.
taperindex
)
);
DUMP
(
logf
);
c
out
<<
PSDXX_value
(
logf
(
opt
.
taperindex
)
)
<<
endl
;
c
err
<<
PSDXX_value
(
logf
(
opt
.
taperindex
)
)
<<
endl
;
for
(
int
i
=
linf
.
f
();
i
<=
linf
.
l
();
++
i
)
{
cout
<<
i
<<
" "
<<
linf
(
i
)
<<
" "
<<
logt
(
linf
(
i
))
<<
endl
;
}
c
out
<<
PSDXX_value
(
logt
.
sum
()
)
<<
endl
;
c
err
<<
PSDXX_value
(
logt
.
sum
()
)
<<
endl
;
}
// if (opt.logtaper)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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