Class: Dsp::Systems::System
- Inherits:
-
Object
- Object
- Dsp::Systems::System
- Includes:
- Convolvable::InstanceMethods, FourierTransformable, Initializable
- Defined in:
- lib/systems/system.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ System
constructor
A new instance of System.
- #to_a ⇒ Object
- #to_ds ⇒ Object
Constructor Details
#initialize(data) ⇒ System
Returns a new instance of System.
6 7 8 9 |
# File 'lib/systems/system.rb', line 6 def initialize(data) @data = data initialize_modules(Dsp::FourierTransformable => {time_data: data}) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/systems/system.rb', line 3 def data @data end |
Instance Method Details
#to_a ⇒ Object
15 16 17 |
# File 'lib/systems/system.rb', line 15 def to_a self.data end |
#to_ds ⇒ Object
11 12 13 |
# File 'lib/systems/system.rb', line 11 def to_ds Dsp::DigitalSignal.new(data: self.data) end |