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

`require': iconv will be deprecated in the future, use String#encode instead. #9

Open ouyangzhiping opened 12 years ago

ouyangzhiping commented 12 years ago

/Users/mind/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.

ruby1.9.3:

require 'statsample'

Note R like generation of random gaussian variable

# and correlation matrix
ss_analysis("Statsample::Bivariate.correlation_matrix") do
  samples=1000
  ds=data_frame(
    'a'=>rnorm(samples), 
    'b'=>rnorm(samples),
    'c'=>rnorm(samples),
    'd'=>rnorm(samples))
  cm=cor(ds) 
  summary(cm)
end
clbustos commented 12 years ago

I will see this. Thanks!