examples/principal_axis.rb in statsample-0.12.0 vs examples/principal_axis.rb in statsample-0.13.0
- old
+ new
@@ -2,7 +2,9 @@
$:.unshift(File.dirname(__FILE__)+'/../lib/')
require 'statsample'
matrix=Matrix[
[1.0, 0.709501601093587, 0.877596585880047, 0.272219316266807], [0.709501601093587, 1.0, 0.291633797330304, 0.871141831433844], [0.877596585880047, 0.291633797330304, 1.0, -0.213373722977167], [0.272219316266807, 0.871141831433844, -0.213373722977167, 1.0]]
+matrix.extend Statsample::CovariateMatrix
+#matrix.fields=%w{a b c d}
fa=Statsample::Factor::PrincipalAxis.new(matrix,:m=>1,:smc=>false)
puts fa.summary