Skip to content

Commit 9bdd49c

Browse files
author
Closed-Limelike-Curves
committed
Fix typos
1 parent bdc841f commit 9bdd49c

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

src/InternalHelpers.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const CHAIN_INDEX_DOC = """
2-
`chain_index::Vector`: An optional vector of integers specifying which chain each step
3-
belongs to. For instance, `chain_index[step]` should return `2` if `log_likelihood[:, step]`
2+
`chain_index::Vector`: An optional vector of integers specifying which chain each step
3+
belongs to. For instance, `chain_index[step]` should return `2` if `log_likelihood[:, step]`
44
belongs to the second chain.
55
"""
66

@@ -9,14 +9,14 @@ const DATA_ARG = """
99
"""
1010

1111
const LIKELIHOOD_FUNCTION_ARG = """
12-
`ll_fun::Function`: A function taking a single data point and returning the log-likelihood
12+
`ll_fun::Function`: A function taking a single data point and returning the log-likelihood
1313
of that point. This function must take the form `f(θ[1], ..., θ[n], data)`, where `θ` is the
1414
parameter vector. See also the `splat` keyword argument.
1515
"""
1616

1717
const R_EFF_DOC = """
18-
`r_eff::AbstractVector`: An (optional) vector of relative effective sample sizes used
19-
in ESS calculations. If left empty, calculated automatically using the FFTESS method
18+
`r_eff::AbstractVector`: An (optional) vector of relative effective sample sizes used
19+
in ESS calculations. If left empty, calculated automatically using the FFTESS method
2020
from InferenceDiagnostics.jl. See `relative_eff` to calculate these values.
2121
"""
2222

src/ParetoSmooth.jl

+4-11
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ using DocStringExtensions
44

55
function __init__()
66

7-
chains_loaded = false
8-
9-
@require Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0" begin
7+
@require MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d" begin
108
include("MCMCChainsHelpers.jl")
11-
include("TuringHelpers.jl")
12-
chains_loaded = true
13-
end
14-
15-
if !chains_loaded
16-
@require MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d" begin
17-
include("MCMCChainsHelpers.jl")
18-
end
9+
@require Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0" begin
10+
include("TuringHelpers.jl")
11+
end
1912
end
2013

2114
end

src/PublicHelpers.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Compute the pointwise log likelihoods.
2222
indicate the parameter; and the third should indicate the chain.
2323
- $DATA_ARG
2424
- `splat`: If `true` (default), `f` must be a function of `n` different parameters.
25-
Otherwise, `f` is assumed to be a function of a single parameter vector.
25+
Otherwise, `f` is assumed to be a function of a single parameter vector.
2626
- $CHAIN_INDEX_DOC
2727
2828
# Returns

0 commit comments

Comments
 (0)