Skip to content

Commit

Permalink
give countmissing the statwrapper supertype
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Sep 29, 2021
1 parent 32bd97a commit 4b17c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Calculate a `stat` along with the count of `missing` values.
o = CountMissing(Mean())
fit!(o, [1, missing, 3])
"""
mutable struct CountMissing{T, O<:OnlineStat{T}} <: OnlineStat{Union{Missing,T}}
mutable struct CountMissing{T, O<:OnlineStat{T}} <: StatWrapper{Union{Missing,T}}
stat::O
nmissing::Int
end
Expand Down

0 comments on commit 4b17c09

Please sign in to comment.