peaks

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package peaks finds the maxima in a vector. It works by lowering a horizontal line across the signal, revealing peaks as it proceeds. Peaks that are closer to each other than a minimum separation distance are merged to the left (lower index).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(x []float64, sep int) []int

Get returns a slice containing the indices of the peaks in x. sep is the minimum distance between 2 peaks. Peaks closer to each other than sep are merged to the lower index.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL