module Math::Quartile

Overview

There are several methods for computing the quartiles of an array.

This library utilizes the method proposed by John Tukey https://en.wikipedia.org/wiki/Quartile#Method_2

Direct including types

Defined in:

lib/math/quartile.cr

Instance Method Summary

Instance Method Detail

def first_quartile : Float64 #

alias


[View source]
def interquartile_range : Float64 #

alias


[View source]
def iqr : Float64 #

[View source]
def lower_fence(k : Number = 1.5) : Float64 #

[View source]
def lower_outliers(k : Number = 1.5) : Array #

[View source]
def lower_quartile : Float64 #

[View source]
def quartiles : Array(Float64) #

[View source]
def second_quartile : Float64 #

alias


[View source]
def third_quartile : Float64 #

alias


[View source]
def upper_fence(k : Number = 1.5) : Float64 #

[View source]
def upper_outliers(k : Number = 1.5) : Array #

[View source]
def upper_quartile : Float64 #

[View source]