Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stddev is the square-root of the variance #29

Merged
merged 1 commit into from Feb 22, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/metriks/histogram.rb
Expand Up @@ -63,7 +63,7 @@ def mean
end

def stddev
count > 0 ? variance : 0.0
count > 0 ? variance ** 0.5 : 0.0
end

def variance
Expand Down Expand Up @@ -109,4 +109,4 @@ def update_variance(value)
end
end
end
end
end