module Helpers

Public Instance Methods

validate_normal_distribution(distribution) click to toggle source
# File spec/helpers.rb, line 10
def validate_normal_distribution distribution
  center_index, y = (distribution.x.size / 2), distribution.y
  highest_value = y[center_index] + 1
  
  current_value = 0.0
  y.each do |value|
    value.should <= highest_value
  end
  
  true
end