class DSP::Analysis::Detrend
- DSP::Analysis::Detrend
- Reference
- Object
Defined in:
dsp/analysis/detrend.crClass Method Summary
-
.apply(signal : Array(Float64), constant? : Bool = false) : Hash(Symbol, Array(Float64))
This method detrends the signal and returns it.
- .apply(signal : Array(Float64), mode = DSP::Analysis::Mode::LINEAR, power : Int32 = 1) : Hash(Symbol, Array(Float64))
- .find_mean(arr : Array(Float64)) : Float64
- .generate_x(signal : Array(Float64)) : Array(Float64)
Class Method Detail
def self.apply(signal : Array(Float64), constant? : Bool = false) : Hash(Symbol, Array(Float64))
#
This method detrends the signal and returns it. Returns: double[] Detrended signal Throws: IllegalArgumentException – if node is not linear, constant or poly
def self.apply(signal : Array(Float64), mode = DSP::Analysis::Mode::LINEAR, power : Int32 = 1) : Hash(Symbol, Array(Float64))
#