We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1491ee commit 346874fCopy full SHA for 346874f
src/univariate.jl
@@ -76,10 +76,6 @@ UniformWeights(n) = UniformWeights{n}()
76
77
Base.sum(x::UniformWeights) = 1.
78
Base.getindex{N}(x::UniformWeights{N}, i) = 1/N
79
-Base.length{N}(x::UniformWeights{N}) = N
80
-values{N}(x::UniformWeights{N}) = fill(x[1], N)
81
-eltype(x::UniformWeights) = eltype(x[1])
82
-isempty{N}(x::UniformWeights{N}) = N==0
83
84
typealias Weights Union{UniformWeights, RealVector, WeightVec}
85
0 commit comments