Documentation ¶
Overview ¶
Package ppeaks detects the peaks in a time series by means of persistent homology: https://www.sthu.org/blog/13-perstopology-peakdetection/index.html.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peaks ¶
type Peaks struct {
// contains filtered or unexported fields
}
func GetPeaks ¶
GetPeaks returns the peaks in a floating point time series. Peaks are returnend in increasing order of their indices.
func GetPeaksInt ¶
GetPeaksInt finds the peaks in an integer time series. Peaks are returnend in increasing order of their indices.
func (*Peaks) GetIndices ¶
GetIndices returns the indices in the original time series `seq` of the peaks with persistence/max(persitence of seq) >= `fracOfMaxPersistence`
func (*Peaks) Max ¶
Max returns the index in the original time series `seq` of the peak with the highest y-value. See GetIndices for fracOfMaxPersistence.
func (*Peaks) MinMaxPersistence ¶
MinMaxPersistence returns the minimum and maximum persistence of the peaks in `seq`.