diff --git a/Project.toml b/Project.toml index 2c3a5b1..909543d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "OnlineStatsBase" uuid = "925886fa-5bf2-5e8e-b522-a9147a512338" -version = "1.4.0" +version = "1.4.1" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/stats.jl b/src/stats.jl index 03fc1a6..2462e3d 100644 --- a/src/stats.jl +++ b/src/stats.jl @@ -458,7 +458,7 @@ function value(o::Variance) if nobs(o) > 1 o.σ2 * bessel(o) else - isfinite(o.μ) ? 1.0 : NaN + isfinite(mean(o)) ? 1.0 : NaN end end Statistics.var(o::Variance) = value(o)