Sha256: b2a3a0ec542babdef5430917220de1713380b68083b718d00e1c0daed54ebb5d

Contents?: true

Size: 211 Bytes

Versions: 15

Compression:

Stored size: 211 Bytes

Contents

require 'spec_helper'

module Mork
  describe Array do
    it 'should give the standard deviation' do
      a = [ 20, 23, 23, 24, 25, 22, 12, 21, 29 ]
      a.stdev.should == 4.594682917363407
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mork-0.8.1 spec/mork/extensions_spec.rb
mork-0.8.0 spec/mork/extensions_spec.rb
mork-0.7.0 spec/mork/extensions_spec.rb
mork-0.6.0 spec/mork/extensions_spec.rb
mork-0.5.0 spec/mork/extensions_spec.rb
mork-0.4.0 spec/mork/extensions_spec.rb
mork-0.3.0 spec/mork/extensions_spec.rb
mork-0.2.1 spec/mork/extensions_spec.rb
mork-0.1.3 spec/mork/extensions_spec.rb
mork-0.1.2 spec/mork/extensions_spec.rb
mork-0.1.1 spec/mork/extensions_spec.rb
mork-0.1.0 spec/mork/extensions_spec.rb
mork-0.0.12 spec/mork/extensions_spec.rb
mork-0.0.11 spec/mork/extensions_spec.rb
mork-0.0.10 spec/mork/extensions_spec.rb