class DSP::Extrema

Overview

Features analysis methods.

Defined in:

dsp/analysis/extrema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(samples : Array(Float64)) #

[View source]
def self.new #

[View source]

Instance Method Detail

def ==(other : Extrema) #

[View source]
def any_processed? #

[View source]
def extrema #

[View source]
def local_maxima : Hash(Int32, Float64) #

[View source]
def local_minima : Hash(Int32, Float64) #

[View source]
def maxima #

[View source]
def minima #

[View source]
def negative_minima #

Returns only negative minima


[View source]
def none_processed? #

[View source]
def outer_extrema #

Returns only negative minima and positive maxima


[View source]
def positive_maxima #

Returns only positive maxima


[View source]
def process_sample(sample : Float64) #

[View source]
def process_samples(samples : Array(Float64)) #

[View source]
def update_global_max(sample) #

[View source]
def update_global_min(sample) #

[View source]
def update_local_extrema(sample : Float64) #

[View source]