Skip to content

Commit aff3dd4

Browse files
committed
fix error, bump Distributions version
1 parent 45eaa24 commit aff3dd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
julia 0.3-
22
StatsBase
3-
Distributions
3+
Distributions 0.4.6

src/univariate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
immutable UnivariateKDE{R<:Range}
33
x::R
44
density::Vector{Float64}
5-
en
5+
end
66

77
# construct kernel from bandwidth
88
kernel_dist(::Type{Normal},w::Real) = Normal(0.0,w)
99
kernel_dist(::Type{Uniform},w::Real) = (s = 1.7320508075688772*w; Uniform(-s,s))
1010

11-
typealias LocationScale Union(Laplace,Logistic)
11+
typealias LocationScale Union(Laplace,Logistic,SymTriangularDist)
1212
kernel_dist{D}(::Type{D},w::Real) = (s = w/std(D(0.0,1.0)); D(0.0,s))
1313

1414

0 commit comments

Comments
 (0)