diff --git a/src/empirical/estimators/carle.jl b/src/empirical/estimators/carle.jl index 30068f1..74fe118 100644 --- a/src/empirical/estimators/carle.jl +++ b/src/empirical/estimators/carle.jl @@ -16,6 +16,6 @@ struct CarleEstimator <: Estimator end formula(::CarleEstimator, z₁ᵢ, z₁ⱼ, z₂ᵢ, z₂ⱼ) = SVector{2,Int}(z₁ᵢ * z₂ⱼ, z₁ᵢ) -normsum(::CarleEstimator, Σy, n) = Σy[1] / Σy[2] +normsum(::CarleEstimator, Σy, n) = iszero(Σy[2]) ? zero(Float64) : Σy[1] / Σy[2] combine(::CarleEstimator, yα, nα, yβ, nβ) = (yα * nα + yβ * nβ) / (nα + nβ)