Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YAPSUT
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michele Maris
YAPSUT
Commits
45d22d3a
Commit
45d22d3a
authored
1 year ago
by
Michele Maris
Browse files
Options
Downloads
Patches
Plain Diff
a colored_noise.py
parent
8cab03b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/yapsut/colored_noise.py
+3
-3
3 additions, 3 deletions
src/yapsut/colored_noise.py
with
3 additions
and
3 deletions
src/yapsut/colored_noise.py
+
3
−
3
View file @
45d22d3a
...
@@ -92,10 +92,10 @@ Keywords:
...
@@ -92,10 +92,10 @@ Keywords:
#
#
self
.
_freq
=
np
.
fft
.
rfftfreq
(
self
.
N
)
self
.
_freq
=
np
.
fft
.
rfftfreq
(
self
.
N
)
#
#
pl
=
self
.
alpha
/
2
pl
=
self
.
alpha
with
np
.
errstate
(
divide
=
'
ignore
'
):
with
np
.
errstate
(
divide
=
'
ignore
'
):
x
=
self
.
fknee
/
np
.
where
(
self
.
_freq
==
0
,
np
.
inf
,
self
.
_freq
)
x
=
self
.
fknee
/
np
.
where
(
self
.
_freq
==
0
,
np
.
inf
,
self
.
_freq
)
self
.
_S
=
(
1
+
x
)
**
pl
self
.
_S
=
(
1
+
x
**
pl
)
**
0.5
#
#
if
self
.
_zero_policy
==
'
0
'
:
if
self
.
_zero_policy
==
'
0
'
:
self
.
_S
[
0
]
=
0.
self
.
_S
[
0
]
=
0.
...
@@ -104,7 +104,7 @@ Keywords:
...
@@ -104,7 +104,7 @@ Keywords:
elif
self
.
_zero_policy
==
'
M
'
:
elif
self
.
_zero_policy
==
'
M
'
:
self
.
_S
[
0
]
=
self
.
wn_mean
self
.
_S
[
0
]
=
self
.
wn_mean
elif
self
.
_zero_policy
==
'
100x1
'
:
elif
self
.
_zero_policy
==
'
100x1
'
:
self
.
_S
[
0
]
=
1
if
fknee
>
ff
[
1
]
else
(
1
+
100
*
self
.
fknee
/
self
.
_freq
[
1
])
**
pl
self
.
_S
[
0
]
=
1
if
fknee
>
ff
[
1
]
else
(
1
+
100
*
(
self
.
fknee
/
self
.
_freq
[
1
])
**
pl
)
**
0.5
else
:
# self._zero_policy=='I' :
else
:
# self._zero_policy=='I' :
# left things as they are
# left things as they are
pass
pass
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment