Giter Site home page Giter Site logo

jtescher / descriptive-statistics Goto Github PK

View Code? Open in Web Editor NEW
106.0 106.0 15.0 49 KB

This gem calculates descriptive statistics including measures of central tendency (e.g. mean, median mode), dispersion (e.g. range, and quartiles), and spread (e.g variance and standard deviation).

Home Page: http://rubygems.org/gems/descriptive-statistics

License: MIT License

Ruby 100.00%

descriptive-statistics's People

Contributors

bfolkens avatar chills42 avatar chris-gooley avatar jtescher avatar nruth avatar wynksaiddestroy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

descriptive-statistics's Issues

Skewness breaks with an empty set

â€ĻI think. Got an Airbrake error:

NoMethodError: undefined method**' for nil:NilClass

vendor/bundle/ruby/1.9.1/gems/descriptive-statistics-1.3.0/lib/descriptive-statistics/shape.rb:6:in 'skewness'
`

Can't regenerate the data set, but your standard deviation calculation will return nil in the case of an empty set, so that should probably be caught elsewhere.

NoMethodError (undefined method `zero?' for nil:NilClass):

I just installed this on my rails 3.2.2 app and Im getting the following error:

Completed 500 Internal Server Error in 2ms

NoMethodError (undefined method `zero?' for nil:NilClass):
  app/controllers/admin_controller.rb:35:in `get_unseen_markers'

  Rendered /Users/chris/.rvm/gems/ruby-1.9.3-head@arcbs-audit-tool/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.7ms)
  Rendered /Users/chris/.rvm/gems/ruby-1.9.3-head@arcbs-audit-tool/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
  Rendered /Users/chris/.rvm/gems/ruby-1.9.3-head@arcbs-audit-tool/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.0ms)

I found this when I first encountered the error and believe this might have something to do with it : http://stackoverflow.com/a/9497207/377679

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.