struct

Serializers::Stats::Quartiles

Inherits Struct < Value < Object

The quartiles of a set of values.

Constructors

from(values : Enumerable(Float64)) : Quartiles

Computes the quartiles of values.

Interpolates linearly between values. Given no values, there are no quartiles.

Source
new(q1 : Float64 | Nil, median : Float64 | Nil, q3 : Float64 | Nil)
Source

Instance methods

clone
Source
copy_with(q1 _q1 = @q1, median _median = @median, q3 _q3 = @q3)
Source
median
q1
q3