Sha256: 6dd826c6adec16c54eaa40be67d207ca2825e5f937aa65cf77f91f2a9a6f9a5f

Contents?: true

Size: 91 Bytes

Versions: 2

Compression:

Stored size: 91 Bytes

Contents

class Array
  def kurtosis
    (self.central_moment(4) / self.variance ** 2) - 3
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rstat-0.1.2 lib/rstat/core_ext/array/descriptive_statistics/shape/kurtosis.rb
rstat-0.1.1 lib/rstat/core_ext/array/descriptive_statistics/shape/kurtosis.rb