burst-detection-1.0: Burst detection algorithms

Safe HaskellSafe-Inferred

Math.Bursts

Contents

Description

 

Synopsis

Data Structures

data Range Source

Representation of ranges.

Constructors

Range 

Fields

rangeStart :: !Int
 
rangeEnd :: !Int
 
rangeMagn :: !Int
 

data Window a Source

The window structure.

Instances

NFData a => NFData (Window a) 

initialWindow :: Num a => Int -> a -> a -> (a -> a -> (a, a)) -> Window aSource

Initial empty window.

defaultAggregate :: (Integral a, Num a) => a -> a -> (a, a)Source

Analysis

sbtBurstAnalysis :: (Ord a, Num a, Integral a, Show a) => a -> Window a -> (Window a, Maybe Range)Source

Shifted Binary Tree burst analysis. Returns Maybe Range. Just range indicates a burst detected. Also returns a new window structure.

sbtBurstAnalysisMany :: (Ord a, Num a, Integral a, Show a) => [a] -> Window a -> (Window a, Maybe Range)Source