Skip to content

Commit

Permalink
mad(v): avoid checking for NaNs when taking the median of deviations.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jun 12, 2013
1 parent 3c5ec96 commit d40dc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module Stats
for i in 1:length(v)
v[i] = abs(v[i]-center)
end
1.4826 * median!(v)
1.4826 * median!(v, checknan=false)
end

# maximum likelihood estimate of skewness with known mean m
Expand Down

0 comments on commit d40dc2b

Please sign in to comment.