From f25af9a2978433f176f4276a1ab05cd9fe6d0932 Mon Sep 17 00:00:00 2001 From: joshday Date: Tue, 17 Mar 2020 10:51:19 -0400 Subject: [PATCH] bump patch version --- Project.toml | 2 +- src/part.jl | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 736935c..b8c611d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "OnlineStatsBase" uuid = "925886fa-5bf2-5e8e-b522-a9147a512338" -version = "1.2.2" +version = "1.2.3" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/part.jl b/src/part.jl index a89562c..50150b4 100644 --- a/src/part.jl +++ b/src/part.jl @@ -34,7 +34,7 @@ Base.merge!(a::Domain, b::Domain, astat, bstat) = merge!(a, b) # - Base.isless #-----------------------------------------------------------------------------# Centroid -mutable struct Centroid{T} +mutable struct Centroid{T} <: Domain center::T end @@ -55,7 +55,7 @@ function Base.merge!(a::Centroid, b::Centroid, astat, bstat) end #-----------------------------------------------------------------------------# ClosedInterval -mutable struct ClosedInterval{T} +mutable struct ClosedInterval{T} <: Domain first::T last::T ClosedInterval(a::T, b::T) where {T} = a < b ? new{T}(a,b) : error("Arguments must be ordered") @@ -68,4 +68,3 @@ function Base.merge!(a::ClosedInterval, b::ClosedInterval, astat, bstat) a.last = max(a.last, b.last) a end -Base.merge!(a::ClosedInterval, b::ClosedInterval) = merge!(a, b, nothing, nothing)