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
76d73277
Commit
76d73277
authored
Feb 14, 2019
by
thomas.forbriger
Browse files
libpsdxx [FIX]: rename variables (frequency interval not time interval)
parent
08c59b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/function_lin_log_sampling.cc
View file @
76d73277
...
...
@@ -47,12 +47,12 @@ namespace psd {
PSDXX_assert
(
s
.
size
()
>
1
,
"input series must contain at least 2 values"
);
PSDXX_assert
(
s
.
size
()
==
flin
.
size
(),
"series of frequencies does not match data series"
);
double
d
t
1
=
flin
(
flin
.
f
()
+
1
)
-
flin
(
flin
.
f
());
double
d
t
2
=
flin
(
flin
.
l
())
-
flin
(
flin
.
l
()
-
1
);
PSDXX_assert
(
std
::
abs
((
d
t
2
/
d
t
1
)
-
1.
)
<
1.e-8
,
double
d
f
1
=
flin
(
flin
.
f
()
+
1
)
-
flin
(
flin
.
f
());
double
d
f
2
=
flin
(
flin
.
l
())
-
flin
(
flin
.
l
()
-
1
);
PSDXX_assert
(
std
::
abs
((
d
f
2
/
d
f
1
)
-
1.
)
<
1.e-8
,
"input frequency scale is not linear"
);
TDISeries
::
Tcoc
data
;
data
.
interval
=
d
t
1
;
data
.
interval
=
d
f
1
;
data
.
data
=
s
;
TDseries
retval
=
log_sampling
(
data
,
flog
);
return
(
retval
);
...
...
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