We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa8241 commit 4b9e885Copy full SHA for 4b9e885
1 file changed
src/mve.jl
@@ -100,6 +100,11 @@ function robcov(data::Matrix; alpha=0.01, estimator=:mve)
100
covmatrix=covmatrix,
101
),
102
)
103
+
104
+ if isnothing(md2)
105
+ throw(ErrorException("Error in Mahalanobis distance calculation."))
106
+ end
107
108
outlierset = filter(x -> md2[x] > chisqcrit, 1:n)
109
result = Dict{String,Any}()
110
result["goal"] = mingoal
0 commit comments