Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Apr 21, 2020
1 parent 48eea77 commit 65c0e3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/stats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ Base.values(o::CountMap) = values(o.value)
Base.getindex(o::CountMap, i) = o.value[i]

#-----------------------------------------------------------------------------# CountMissing
"""
CountMissing(stat)
Calculate a `stat` along with the count of `missing` values.
# Example
o = CountMissing(Mean())
fit!(o, [1, missing, 3])
"""
mutable struct CountMissing{T, O<:OnlineStat{T}} <: OnlineStat{Union{Missing,T}}
stat::O
nmissing::Int
Expand Down

0 comments on commit 65c0e3a

Please sign in to comment.