Skip to content

Commit

Permalink
fix diag(nothing) in mve
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed May 26, 2024
1 parent 6aa8241 commit 4b9e885
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ function robcov(data::Matrix; alpha=0.01, estimator=:mve)
covmatrix=covmatrix,
),
)

if isnothing(md2)
throw(ErrorException("Error in Mahalanobis distance calculation."))
end

outlierset = filter(x -> md2[x] > chisqcrit, 1:n)
result = Dict{String,Any}()
result["goal"] = mingoal
Expand Down

0 comments on commit 4b9e885

Please sign in to comment.