Module: Bullshit

Defined in:
lib/bullshit.rb,
lib/bullshit/version.rb

Overview

Module that includes all constants of the bullshit library.

Defined Under Namespace

Modules: CommonConstants, EvaluationModule, Functions, ModuleFunctions Classes: Analysis, BullshitException, Case, CaseMethod, ChiSquareDistribution, Clock, Comparison, ContinuedFraction, Histogram, LinearRegression, NewtonBisection, NormalDistribution, RangeCase, RepeatCase, TDistribution, TimeCase

Constant Summary collapse

COLUMNS =

Number of columns in the output.

79
NAME_COLUMN_SIZE =

Number of columns used for row names.

5
Infinity =

Refers to floating point infinity.

1.0 / 0
RUBY_DESCRIPTION =
"ruby %s (%s patchlevel %s) [%s]" %
[ RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PATCHLEVEL, RUBY_PLATFORM ]
STD_NORMAL_DISTRIBUTION =
NormalDistribution.new
VERSION =

Bullshit version

'0.1.0'
VERSION_ARRAY =

:nodoc:

VERSION.split(/\./).map { |x| x.to_i }
VERSION_MAJOR =

:nodoc:

VERSION_ARRAY[0]
VERSION_MINOR =

:nodoc:

VERSION_ARRAY[1]
VERSION_BUILD =

:nodoc:

VERSION_ARRAY[2]

Class Method Summary collapse

Class Method Details

.compare(&block) ⇒ Object

Create a Comparison instance configured by block and compute and display the results.



2237
2238
2239
# File 'lib/bullshit.rb', line 2237

def self.compare(&block)
  Comparison.new(&block).display
end