@@ -9,7 +9,7 @@ using ForwardDiff # For automatic differentiation, no user nor approximate deriv
99using StatsBase # To include the basic sample from array function
1010# ------------------------------
1111export Line, Objective, Envelop, RejectionSampler # Structures/classes
12- export run_sampler!, eval_envelop, add_segment! # Methods
12+ export run_sampler!, sample_envelop, eval_envelop, add_segment! # Methods
1313# ------------------------------
1414
1515"""
4545 Envelop(lines::Vector{Line}, support::Tuple{Float64, Float64})
4646A piecewise linear function with k segments defined by the lines `L_1, ..., L_k` and cutpoints
4747`c_1, ..., c_k+1` with `c1 = support[1]` and `c2 = support[2]`. A line L_k is active in the segment
48- [c_k, c_k+1], and it's assigned a weight w_k based on [exp_integral](@ref ). The weighted integral
48+ [c_k, c_k+1], and it's assigned a weight w_k based on [exp_integral](@exp_integral ). The weighted integral
4949over c_1 to c_k+1 is one, so that the envelop is interpreted as a density.
5050"""
5151mutable struct Envelop
100100"""
101101 sample_envelop(p::Envelop)
102102Samples an element from the density defined by the envelop `e` with it's exponential weights.
103- See [`Envelop`](@ref ) for details.
103+ See [`Envelop`](@Envelop ) for details.
104104"""
105105function sample_envelop (e:: Envelop )
106106 # Randomly select lines based on envelop weights
0 commit comments