Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Sylvia Biscoveanu
bilby
Commits
faf745d3
Commit
faf745d3
authored
6 years ago
by
MoritzThomasHuebner
Browse files
Options
Downloads
Patches
Plain Diff
Renamed function -> func
parent
251472b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tupak/core/likelihood.py
+3
-3
3 additions, 3 deletions
tupak/core/likelihood.py
with
3 additions
and
3 deletions
tupak/core/likelihood.py
+
3
−
3
View file @
faf745d3
...
...
@@ -126,7 +126,7 @@ class Analytical1DLikelihood(Likelihood):
class
GaussianLikelihood
(
Analytical1DLikelihood
):
def
__init__
(
self
,
x
,
y
,
func
tion
,
sigma
=
None
):
def
__init__
(
self
,
x
,
y
,
func
,
sigma
=
None
):
"""
A general Gaussian likelihood for known or unknown noise - the model
parameters are inferred from the arguments of function
...
...
@@ -135,7 +135,7 @@ class GaussianLikelihood(Analytical1DLikelihood):
----------
x, y: array_like
The data to analyse
func
tion
:
func:
The python function to fit to the data. Note, this must take the
dependent variable as its first argument. The other arguments
will require a prior and will be sampled over (unless a fixed
...
...
@@ -148,7 +148,7 @@ class GaussianLikelihood(Analytical1DLikelihood):
to that for `x` and `y`.
"""
Analytical1DLikelihood
.
__init__
(
self
,
x
=
x
,
y
=
y
,
func
=
func
tion
)
Analytical1DLikelihood
.
__init__
(
self
,
x
=
x
,
y
=
y
,
func
=
func
)
self
.
sigma
=
sigma
# Check if sigma was provided, if not it is a parameter
...
...
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