Developer docs
ARS.AllocFreeWeightsARS.__sample!ARS.add_segment!ARS.calc_domain_integral_expARS.eval_hullARS.exp_integral_lineARS.intersectionARS.line
ARS.AllocFreeWeights — Typestruct AllocFreeWeights{S<:Real, T<:Number, V<:AbstractArray{T<:Number, 1}} <: StatsBase.AbstractWeights{S<:Real, T<:Number, V<:AbstractArray{T<:Number, 1}}Non-mutable weights used in the sample function in this package in order to avoid allocations.
values::AbstractVector{T} where T<:Numbersum::Real
ARS.__sample! — Method__sample!(rng::AbstractRNG, out::Vector{T}, s::ARSampler{T}, add_segments::Bool) where {T<:AbstractFloat}All other __sample! methods call this one.
ARS.add_segment! — Methodadd_segment!(
s::ARS.ARSampler{T<:AbstractFloat},
x::AbstractFloat
)
Modifies the hulls of s, adding a segment with at x.
ARS.calc_domain_integral_exp — Methodcalc_domain_integral_exp(hull::UpperHull)Calculate the domain integral of hull.
ARS.eval_hull — MethodEval hull h at x.
ARS.exp_integral_line — Methodexp_integral_line(slope, intercept, x1, x2)Calculate the integral of exp(slope * x + intercept) between x1 and x2. Handles a slope of 0.
ARS.intersection — MethodReturns the intersection abscissa between 2 lines as defined by their slopes and intercepts. Returns NaN if the lines are paralell.
ARS.line — MethodGet line i from the hull. Returns a tuple consisting of (slope, intercept).