lib/statsample/multiset.rb in statsample-0.10.0 vs lib/statsample/multiset.rb in statsample-0.11.0
- old
+ new
@@ -41,9 +41,15 @@
def collect_vector(field)
@datasets.collect {|k,v|
yield k, v[field]
}
end
+
+ def each_vector(field)
+ @datasets.each {|k,v|
+ yield k, v[field]
+ }
+ end
def[](i)
@datasets[i]
end
end
class StratifiedSample