DSP::Analysis::Detrend
Inherits Reference < Object
Class methods
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
apply(signal : Array(Float64), mode = DSP::Analysis::Mode::LINEAR, power : Int32 = 1) : Hash(Symbol, Array(Float64))
Sourcefind_mean(arr : Array(Float64)) : Float64
Sourcegenerate_x(signal : Array(Float64)) : Array(Float64)
Source