Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
5f91d098
Commit
5f91d098
authored
Apr 03, 2019
by
Reimar H Leike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now exporting the linear part of the amplitude operator
parent
eac959bd
Pipeline
#46361
failed with stages
in 3 minutes and 46 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
nifty5/__init__.py
nifty5/__init__.py
+1
-1
nifty5/library/smooth_linear_amplitude.py
nifty5/library/smooth_linear_amplitude.py
+11
-2
No files found.
nifty5/__init__.py
View file @
5f91d098
...
...
@@ -74,7 +74,7 @@ from .minimization.metric_gaussian_kl import MetricGaussianKL
from
.sugar
import
*
from
.plot
import
Plot
from
.library.smooth_linear_amplitude
import
SLAmplitude
,
CepstrumOperator
from
.library.smooth_linear_amplitude
import
SLAmplitude
,
LinearSLAmplitude
,
CepstrumOperator
from
.library.inverse_gamma_operator
import
InverseGammaOperator
from
.library.los_response
import
LOSResponse
from
.library.dynamic_operator
import
(
dynamic_operator
,
...
...
nifty5/library/smooth_linear_amplitude.py
View file @
5f91d098
...
...
@@ -111,7 +111,6 @@ def CepstrumOperator(target, a, k0):
return
sym
@
qht
@
makeOp
(
cepstrum
.
sqrt
())
def
SLAmplitude
(
*
,
target
,
n_pix
,
a
,
k0
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
]):
'''Operator for parametrizing smooth amplitudes (square roots of power
spectra).
...
...
@@ -169,6 +168,16 @@ def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']):
which returns on its target a power spectrum which consists out of a
smooth and a linear part.
'''
return
LinearSLAmplitude
(
target
,
n_pix
,
a
,
k0
,
sm
,
sv
,
im
,
iv
,
keys
).
exp
()
def
LinearSLAmplitude
(
*
,
target
,
n_pix
,
a
,
k0
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
]):
'''LinearOperator for parametrizing smooth log-amplitudes (square roots of power
spectra).
Logarithm of SLAmplitude
See documentation of SLAmplitude for more details
'''
if
not
(
isinstance
(
n_pix
,
int
)
and
isinstance
(
target
,
PowerSpace
)):
raise
TypeError
...
...
@@ -196,4 +205,4 @@ def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']):
loglog_ampl
=
0.5
*
(
smooth
+
linear
)
# Go from loglog-space to linear-linear-space
return
et
@
loglog_ampl
.
exp
()
return
et
@
loglog_ampl
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