clbustos / statsample

A suite for basic and advanced statistics on Ruby.
http://github.com/clbustos/statsample
BSD 3-Clause "New" or "Revised" License
402 stars 96 forks source link

Error, Argument should be a Vector, when calling Array.to_scale #22

Closed justin808 closed 10 years ago

justin808 commented 10 years ago

I'm seeing this exact issue.

http://stackoverflow.com/questions/20659478/argument-should-be-a-vector

b = [2,3,4,5,6,7].to_scale
# => #<TypeError: Argument should be a Vector>

I would guess the error is caused by monkey patching the core libs. Maybe this can be optional?

clbustos commented 10 years ago

Fixed :+1: