Statistics in Ruby on Rails

Asked

Viewed 173 times

3

I have the following problem, I need my system to generate some statistical data from an array, for example:

vetor = [1, 5, 2, 1, 6, 30, 2, 7, 2, 80]

I need to extract some data from it, like:

  • Average

  • Median

  • Fad

  • Minimum

  • Maxim

  • Standard deviation

Utilise in version 3.2.15.

My question is this, do you know any Help me in this or I’ll have to do everything by hand?

1 answer

3


  • 2

    You can name the gem in case the link breaks?

  • 1

    OK @Eagorajose, I added the name of Gem. Thanks

Browser other questions tagged

You are not signed in. Login or sign up in order to post.