Sha256: 239ce127aeec0fde5b4e63f35681a33b05c8bcf89137a21cbfb1ccfa479570ed
Contents?: true
Size: 262 Bytes
Versions: 1
Compression:
Stored size: 262 Bytes
Contents
module Piglet::Relation def samples(*sizes) sizes.map { |s| sample(s) } end end input = load('input', :schema => %w(country browser site visit_duration)) a, b, c = input.samples(0.1, 0.2, 0.3) store(a, 'output1') store(b, 'output2') store(c, 'output3')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.1.0 | examples/scratch.rb |