class Leafy::Core::Snapshot
A statistical snapshot of a {@link Snapshot}.
Public Instance Methods
get_75th_percentile()
click to toggle source
Returns the value at the 75th percentile in the distribution.
@the value at the 75th percentile
# File lib/leafy/core/snapshot.rb, line 25 def get_75th_percentile value(0.75) end
get_95th_percentile()
click to toggle source
Returns the value at the 95th percentile in the distribution.
@the value at the 95th percentile
# File lib/leafy/core/snapshot.rb, line 32 def get_95th_percentile value(0.95) end
get_98th_percentile()
click to toggle source
Returns the value at the 98th percentile in the distribution.
@the value at the 98th percentile
# File lib/leafy/core/snapshot.rb, line 39 def get_98th_percentile value(0.98) end
get_999th_percentile()
click to toggle source
Returns the value at the 99.9th percentile in the distribution.
@the value at the 99.9th percentile
# File lib/leafy/core/snapshot.rb, line 53 def get_999th_percentile value(0.999) end
get_99th_percentile()
click to toggle source
Returns the value at the 99th percentile in the distribution.
@the value at the 99th percentile
# File lib/leafy/core/snapshot.rb, line 46 def get_99th_percentile value(0.99) end
median()
click to toggle source
Returns the median value in the distribution.
@return the median value
# File lib/leafy/core/snapshot.rb, line 18 def median value(0.5) end
value(_quantile)
click to toggle source
Returns the value at the given quantile.
@param quantile a given quantile, in {@code [0..1]} @return the value in the distribution at {@code quantile}
# File lib/leafy/core/snapshot.rb, line 11 def value(_quantile) raise 'not implemented' end