diff --git a/Project.toml b/Project.toml index ff37203..9338354 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "OnlineStatsBase" uuid = "925886fa-5bf2-5e8e-b522-a9147a512338" -version = "1.2.6" +version = "1.2.7" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/part.jl b/src/part.jl index 66b4d8a..8e32248 100644 --- a/src/part.jl +++ b/src/part.jl @@ -21,8 +21,6 @@ end Base.diff(a::Part, b::Part) = diff(a.domain, b.domain) - - #-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------# Domains #-----------------------------------------------------------------------------# @@ -64,7 +62,7 @@ Base.show(io::IO, b::ClosedInterval) = print(io, "ClosedInterval: [$(b.first), $ Base.in(x, bucket::ClosedInterval) = bucket.first ≤ x ≤ bucket.last Base.isless(a::ClosedInterval, b::ClosedInterval) = isless(a.first, b.first) function Base.diff(a::ClosedInterval, b::ClosedInterval) - a < b ? _value(b.last) - _value(a.first) : _value(a.last) - _value(b.first) + a < b ? _value(b.first) - _value(a.last) : _value(a.first) - _value(b.last) end _value(x) = x