lib/statsample/factor/principalaxis.rb in statsample-0.6.1 vs lib/statsample/factor/principalaxis.rb in statsample-0.6.2
- old
+ new
@@ -38,11 +38,11 @@
pca=PCA.new(::Matrix.rows(work_matrix))
@initial_eigenvalues=pca.eigenvalues
@iterations=0
t.times do |i|
@iterations+=1
- prev_com.each_with_index{|v,i|
- work_matrix[i][i]=v
+ prev_com.each_with_index{|v,it|
+ work_matrix[it][it]=v
}
pca=Statsample::PCA.new(::Matrix.rows(work_matrix))
@communality=pca.communality(m)
jump=true