Skip to content

Support standard deviation in the statistical metrics gathered #13

Open
wants to merge 2 commits into from

1 participant

@KarlHerler

Because it's a good metric, heck it's a nessesary metric.

In case you've forgotten some of stats 101:

  • Variance shows how spread out the numbers are, hence the name. It is basically computed as the average distance from the mean.
  • Standard deviation is basically each distance from the mean, like with the variance, only squared (so as to avoid having negative numbers) then averaged and square rooted.

I changed the app/models/probe.rb to support add support for standard deviations, not sure if it's the right spot but seemed the best (although the documentation only mentioned averages so I changed that).
I havent tested it to be honest, the method exists in rstats so it should be peachy-fine but nevertheless you've been warned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.