Lines Matching refs:threshold
114 # +threshold+. Note: because we're testing for a slope of 0, R^2
115 # is not a good determining factor for the fit, so the threshold
134 def assert_performance_constant threshold = 0.99, &work
137 assert_in_delta 0, b, 1 - threshold
146 # match a exponential curve within a given error +threshold+.
160 def assert_performance_exponential threshold = 0.99, &work
161 assert_performance validation_for_fit(:exponential, threshold), &work
166 # match a straight line within a given error +threshold+.
180 def assert_performance_linear threshold = 0.99, &work
181 assert_performance validation_for_fit(:linear, threshold), &work
186 # fit to match a power curve within a given error +threshold+.
200 def assert_performance_power threshold = 0.99, &work
201 assert_performance validation_for_fit(:power, threshold), &work
296 # that the error is within a tolerable threshold.
298 def validation_for_fit msg, threshold
301 assert_operator rr, :>=, threshold
345 def self.bench_performance_linear name, threshold = 0.99, &work
347 assert_performance_linear threshold, &work
360 def self.bench_performance_constant name, threshold = 0.99, &work
362 assert_performance_constant threshold, &work
375 def self.bench_performance_exponential name, threshold = 0.99, &work
377 assert_performance_exponential threshold, &work