Class: FlameChannelParser::Segments::ConstantExtrapolate
- Inherits:
-
LinearSegment
- Object
- ConstantSegment
- LinearSegment
- FlameChannelParser::Segments::ConstantExtrapolate
- Defined in:
- lib/segments.rb
Overview
This segment does extrapolation using a constant value
Direct Known Subclasses
Constant Summary
Constant Summary
Constants inherited from ConstantSegment
FlameChannelParser::Segments::ConstantSegment::NEG_INF, FlameChannelParser::Segments::ConstantSegment::POS_INF
Instance Attribute Summary
Attributes inherited from ConstantSegment
Instance Method Summary (collapse)
-
- (ConstantExtrapolate) initialize(from_frame, base_value)
constructor
:nodoc:.
- - (Object) value_at(frame)
Methods inherited from ConstantSegment
Constructor Details
- (ConstantExtrapolate) initialize(from_frame, base_value)
:nodoc:
215 216 217 218 219 |
# File 'lib/segments.rb', line 215 def initialize(from_frame, base_value) @start_frame = from_frame @base_value = base_value @end_frame = POS_INF end |
Instance Method Details
- (Object) value_at(frame)
221 222 223 |
# File 'lib/segments.rb', line 221 def value_at(frame) @base_value end |