class

DSP::Sig

Inherits Enumerable < Reference < Object

Constructors

new(data : Array(Float64), sample_rate : Float64)
Source

Instance methods

*(other : Float64)
Source
*(other : Sig)
Source
*(other : Array(Float64))
Source
+(other : Float64)
Source
+(other : Sig)
Source
+(other : Array(Float64))
Source
-(other : Float64)
Source
-(other : Sig)
Source
-(other : Array(Float64))
Source
/(other : Float64)
Source
/(other : Sig)
Source
/(other : Array(Float64))
Source
==(other)

Returns false (other can only be a Value here).

Source
abs

Operate on copy of the Sig object with the absolute value function.

Source
clone
Source
data
Source
duration

Sig duration in seconds.

Source
each(*args, **options)
Source
each(*args, **options, &)
Source
energy

Calculate the energy in current signal data.

Source
extrema
Source
frequency_domain
Source
max_magnitude
Source
normalize(max_magn = 1.0)

adjust samples to maximum magnitude of 1

Source
rms

Calculate signal RMS (root-mean square), also known as quadratic mean, a statistical measure of the magnitude.

Source
sample_rate
Source
size(*args, **options)
Source
size(*args, **options, &)
Source