Method: Spark::Command::Sample#_sampler

Defined in:
lib/spark/command/statistic.rb

#_samplerObject



23
24
25
26
27
28
29
30
31
# File 'lib/spark/command/statistic.rb', line 23

def _sampler
  if @with_replacement
    sampler = Spark::Sampler::Poisson
  else
    sampler = Spark::Sampler::Uniform
  end

  sampler = sampler.new(@fraction, @seed)
end