projects
/
calibcant.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed359db
)
Use abs(C) in fit_psd() (to match breit_wigner()).
author
W. Trevor King
<wking@drexel.edu>
Fri, 17 Jun 2011 19:50:36 +0000
(15:50 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 17 Jun 2011 19:50:36 +0000
(15:50 -0400)
calibcant/vib_analyze.py
patch
|
blob
|
history
diff --git
a/calibcant/vib_analyze.py
b/calibcant/vib_analyze.py
index d226d358504a819847a84ddabd6661649f10167c..59c83170daddabf5a30ec0e342b0a16fa944047c 100644
(file)
--- a/
calibcant/vib_analyze.py
+++ b/
calibcant/vib_analyze.py
@@
-436,7
+436,8
@@
def fit_psd(freq_axis, psd_data, min_frequency=500, max_frequency=25000,
A,B,C = p
D = 0
A=abs(A) # A and B only show up as squares in f(x)
- B=abs(B) # so ensure we get positive values
+ B=abs(B) # so ensure we get positive values.
+ C=abs(C) # Only abs(C) is used in breit_wigner().
return (A, B, C, D)
def breit_wigner_area(A, B, C):