Skip to content

Commit

Permalink
move alias table import and tighten from using to import
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Apr 12, 2024
1 parent 052467c commit 1c3530c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Distributions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import PDMats: dim, PDMat, invquad
using SpecialFunctions
using Base.MathConstants: eulergamma

import AliasTables

export
# re-export Statistics
mean, median, quantile, std, var, cov, cor,
Expand Down
1 change: 0 additions & 1 deletion src/samplers/aliastable.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using AliasTables
struct AliasTable <: Sampleable{Univariate,Discrete}
at::AliasTables.AliasTable{UInt64, Int}
AliasTable(probs::AbstractVector{<:Real}) = new(AliasTables.AliasTable(probs))
Expand Down

0 comments on commit 1c3530c

Please sign in to comment.