examples/parallel_analysis.rb in statsample-1.4.3 vs examples/parallel_analysis.rb in statsample-1.5.0

- old
+ new

@@ -13,10 +13,10 @@ f3=rnorm(samples) vectors={} variables.times do |i| - vectors["v#{i}"]=samples.times.collect {|nv| f1[nv]*i+(f2[nv]*(15-i))+((f3[nv]*(30-i))*1.5)*rng.call}.to_scale + vectors["v#{i}"]=samples.times.collect {|nv| f1[nv]*i+(f2[nv]*(15-i))+((f3[nv]*(30-i))*1.5)*rng.call}.to_numeric vectors["v#{i}"].name="Vector #{i}" end ds=vectors.to_dataset