Class: PulseMeter::Sensor::Timelined::Median
- Inherits:
-
Percentile
- Object
- Base
- PulseMeter::Sensor::Timeline
- Percentile
- PulseMeter::Sensor::Timelined::Median
- Defined in:
- lib/pulse-meter/sensor/timelined/median.rb
Overview
Calculates median of iterval values
Constant Summary
Constants inherited from PulseMeter::Sensor::Timeline
PulseMeter::Sensor::Timeline::DEFAULTS
Constants included from Mixins::Dumper
Mixins::Dumper::DUMP_REDIS_KEY
Instance Attribute Summary
Attributes inherited from Percentile
Attributes inherited from PulseMeter::Sensor::Timeline
#interval, #raw_data_ttl, #reduce_delay, #ttl
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Median
constructor
A new instance of Median.
Methods inherited from Percentile
Methods inherited from PulseMeter::Sensor::Timeline
#aggregate_event, #cleanup, #current_interval_id, #current_raw_data_key, #data_key, #event, #get_interval_id, #get_timeline_value, #raw_data_key, #reduce, #reduce_all_raw, reduce_all_raw, #summarize, #timeline, #timeline_within
Methods included from Mixins::Utils
#assert_positive_integer!, #assert_ranged_float!, #camelize, #camelize_keys, #constantize, #symbolize_keys, #titleize, #uniqid
Methods inherited from Base
#annotate, #annotation, #cleanup, #event
Methods included from Mixins::Dumper
Constructor Details
#initialize(name, options) ⇒ Median
Returns a new instance of Median.
7 8 9 |
# File 'lib/pulse-meter/sensor/timelined/median.rb', line 7 def initialize(name, ) super(name, .merge({:p => 0.5})) end |