diff --git a/src/univariate.jl b/src/univariate.jl index b495aa06..a82605cb 100644 --- a/src/univariate.jl +++ b/src/univariate.jl @@ -77,7 +77,7 @@ UniformWeights(n) = UniformWeights{n}() Base.sum(x::UniformWeights) = 1. Base.getindex(x::UniformWeights{N}, i) where {N} = 1/N -const Weights = Union{UniformWeights, RealVector, WeightVec} +const Weights = Union{UniformWeights, RealVector, StatsBase.Weights} # tabulate data for kde