class Object
Public Instance Methods
create_dataset(vars,cases)
click to toggle source
# File benchmarks/correlation_matrix_methods/correlation_matrix.rb, line 7 def create_dataset(vars,cases) ran=Distribution::Normal.rng ds=vars.times.inject({}) {|ac,v| ac["x#{v}"]=Statsample::Vector.new_scale(cases) {ran.call} ac }.to_dataset end
create_test(*args,&proc)
click to toggle source
# File lib/statsample.rb, line 82 def create_test(*args,&proc) description=args.shift fields=args [description, fields, Proc.new] end
prediction_optimized(vars,cases)
click to toggle source
# File benchmarks/correlation_matrix_methods/correlation_matrix.rb, line 18 def prediction_optimized(vars,cases) Statsample::Bivariate.prediction_optimized(vars,cases) / 10 end
prediction_pairwise(vars,cases)
click to toggle source
# File benchmarks/correlation_matrix_methods/correlation_matrix.rb, line 15 def prediction_pairwise(vars,cases) Statsample::Bivariate.prediction_pairwise(vars,cases) / 10 end
setup_rb_error(msg)
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 1572 def setup_rb_error(msg) raise SetupError, msg end
ss_analysis(*args,&block)
click to toggle source
Shorthand for Statsample::Analysis.store(*args,&block)
# File lib/statsample/shorthand.rb, line 3 def ss_analysis(*args,&block) Statsample::Analysis.store(*args,&block) end