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
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
6e23c2ab
Commit
6e23c2ab
authored
Jun 07, 2013
by
Marco Selig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotfix in infer_power.
parent
aa67fcf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nifty_power.py
nifty_power.py
+3
-3
No files found.
nifty_power.py
View file @
6e23c2ab
...
@@ -502,7 +502,7 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None
...
@@ -502,7 +502,7 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None
if
(
smoothness
):
if
(
smoothness
):
if
(
not
domain
.
discrete
):
if
(
not
domain
.
discrete
):
numerator
=
weight_power
(
domain
,
numerator
,
power
=-
1
,
pindex
=
pindex
,
pundex
=
pundex
)
numerator
=
weight_power
(
domain
,
numerator
,
power
=-
1
,
pindex
=
pindex
,
pundex
=
pundex
)
## bare(!)
pk
=
numerator
/
denominator1
## bare(!)
pk
=
numerator
/
denominator1
## bare(!)
## smoothness prior
## smoothness prior
...
@@ -535,8 +535,8 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None
...
@@ -535,8 +535,8 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None
else
:
else
:
pk
=
numerator
/
denominator1
## non-bare(!)
pk
=
numerator
/
denominator1
## non-bare(!)
## weight if ...
## weight if ...
if
(
not
domain
.
discrete
)
and
(
not
bare
):
if
(
not
domain
.
discrete
)
and
(
bare
):
pk
=
weight_power
(
domain
,
pk
,
power
=
1
,
pindex
=
pindex
,
pundex
=
pundex
)
## non-
bare(!)
pk
=
weight_power
(
domain
,
pk
,
power
=
-
1
,
pindex
=
pindex
,
pundex
=
pundex
)
##
bare(!)
return
pk
return
pk
...
...
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