From eb97a306c8cc73bfc56eb7dd24f0d1232d782d9b Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Tue, 2 Jan 2018 13:21:20 -0800 Subject: [PATCH] Fix deprecation warning --- src/univariate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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