Skip to content

Instantly share code, notes, and snippets.

@v0dro
Created May 7, 2015 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0dro/5c886a2a6dbf44fcffc7 to your computer and use it in GitHub Desktop.
Save v0dro/5c886a2a6dbf44fcffc7 to your computer and use it in GitHub Desktop.
statsample without rb-gsl
Finished in 48.920916s, 8.2378 runs/s, 25.8376 assertions/s.
1) Failure:
StatsampleReliabilityIccTestCase#test_: Statsample::Reliability::ICC with Shrout & Fleiss denominations, should icc(2,1) confidence interval should be correct. [/home/sameer/gitrepos/statsample/test/test_reliability_icc.rb:81]:
Expected |0.019 - -0.02227501611508347| (0.04127501611508347) to be <= 0.001.
2) Failure:
StatsampleReliabilityIccTestCase#test_: Statsample::Reliability::ICC McGraw and Wong ICC Type icc_a_k should bounds be equal. [/home/sameer/gitrepos/statsample/test/test_reliability_icc.rb:186]:
Expected |0.98156527598367 - 0.9759274278050467| (0.005637848178623339) to be <= 0.001.
3) Failure:
StatsampleReliabilityIccTestCase#test_: Statsample::Reliability::ICC with Shrout & Fleiss denominations, should icc(2,k) confidence interval should be correct. [/home/sameer/gitrepos/statsample/test/test_reliability_icc.rb:89]:
Expected |0.039 - -0.0827232359933065| (0.1217232359933065) to be <= 0.001.
4) Failure:
StatsampleReliabilityIccTestCase#test_: Statsample::Reliability::ICC McGraw and Wong ICC Type icc_a_1 should bounds be equal. [/home/sameer/gitrepos/statsample/test/test_reliability_icc.rb:186]:
Expected |0.930062965704988 - 0.9193053388454245| (0.010757626859563496) to be <= 0.001.
5) Error:
StatsampleTestVector#test_: Statsample::Vector should bootstrap should return a vector with mean=mu and sd=se. :
NoMethodError: undefined method `mean' for #<Array:0x9f0edf4>
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:626:in `block (2 levels) in prepare_bootstrap'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:552:in `call'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:552:in `block (2 levels) in bootstrap'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:550:in `each'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:550:in `block in bootstrap'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:548:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/vector.rb:548:in `bootstrap'
/home/sameer/gitrepos/statsample/test/test_vector.rb:316:in `block (2 levels) in <class:StatsampleTestVector>'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
6) Error:
StatsampleBartlettSphericityTestCase#test_: Statsample::Test::BartlettSphericity should have correct value for probability. :
NoMethodError: undefined method `&' for (3/1):Rational
/home/sameer/.rvm/gems/ruby-2.2.1/gems/distribution-0.7.2/lib/distribution/chisquare/ruby.rb:59:in `q_chi2'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/distribution-0.7.2/lib/distribution/chisquare/ruby.rb:52:in `cdf'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/distribution-0.7.2/lib/distribution.rb:113:in `block (3 levels) in create_distribution_methods'
/home/sameer/gitrepos/statsample/lib/statsample/test/bartlettsphericity.rb:37:in `probability'
/home/sameer/gitrepos/statsample/test/test_bartlettsphericity.rb:22:in `block (2 levels) in <class:StatsampleBartlettSphericityTestCase>'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
7) Error:
StatsampleFactorTestCase#test_principalcomponents:
NoMethodError: undefined method `[]' for GSL::Matrix:Class
/home/sameer/gitrepos/statsample/lib/statsample/matrix.rb:57:in `to_gsl'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:209:in `calculate_eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:78:in `initialize'
/home/sameer/gitrepos/statsample/test/test_factor.rb:94:in `new'
/home/sameer/gitrepos/statsample/test/test_factor.rb:94:in `principalcomponents'
/home/sameer/gitrepos/statsample/test/test_factor.rb:81:in `test_principalcomponents'
8) Error:
StatsampleFactorTestCase#test_principalcomponents_ruby_gsl:
NoMethodError: undefined method `[]' for GSL::Matrix:Class
/home/sameer/gitrepos/statsample/lib/statsample/matrix.rb:57:in `to_gsl'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:209:in `calculate_eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:78:in `initialize'
/home/sameer/gitrepos/statsample/test/test_factor.rb:56:in `new'
/home/sameer/gitrepos/statsample/test/test_factor.rb:56:in `block in test_principalcomponents_ruby_gsl'
/home/sameer/gitrepos/statsample/test/test_factor.rb:42:in `each'
/home/sameer/gitrepos/statsample/test/test_factor.rb:42:in `test_principalcomponents_ruby_gsl'
403 runs, 1264 assertions, 4 failures, 4 errors, 12 skips
You have skipped tests. Run with --verbose for details.
rake aborted!
Command failed with status (1): [ruby -I"lib" "/home/sameer/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/test_*.rb" ]
/home/sameer/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/home/sameer/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment