Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
adc-testing
Commits
02dbfe6d
Commit
02dbfe6d
authored
Aug 15, 2011
by
Federico Asara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in ideal histogram generation.
parent
d5c186c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SingleToneSignal.py
SignalProcessing/SingleToneSignal.py
+2
-2
No files found.
SignalProcessing/SingleToneSignal.py
View file @
02dbfe6d
...
...
@@ -104,7 +104,7 @@ class SingleToneSignal(Signal):
if
self
.
nsamples
==
0
:
return
output
output
.
nsamples
=
self
.
nsamples
output
.
rate
=
self
.
rate
...
...
@@ -222,7 +222,7 @@ class SingleToneSignal(Signal):
factor
=
sin
(
hpi
*
Mt
/
(
Mt
+
self
.
realHistogram
[
0
]
+
self
.
realHistogram
[
-
1
]))
n
=
arange
(
0
,
res
)
-
hres
n
=
arcsin
((
n
)
/
(
hres
))
-
arcsin
((
n
-
1
)
/
(
hres
))
n
=
arcsin
((
n
)
/
(
factor
*
hres
))
-
arcsin
((
n
-
1
)
/
(
factor
*
hres
))
result
=
(
n
*
Mt
/
pi
)
...
...
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