plot-light-0.2.7: A lightweight plotting library, exporting to SVG

Safe HaskellNone
LanguageHaskell2010

Data.TimeSeries

Synopsis

Documentation

data Tick Source #

An instant, defined by date (Day) and TimeOfDay

Constructors

Tick Day TimeOfDay 

Instances

Eq Tick Source # 

Methods

(==) :: Tick -> Tick -> Bool #

(/=) :: Tick -> Tick -> Bool #

Ord Tick Source # 

Methods

compare :: Tick -> Tick -> Ordering #

(<) :: Tick -> Tick -> Bool #

(<=) :: Tick -> Tick -> Bool #

(>) :: Tick -> Tick -> Bool #

(>=) :: Tick -> Tick -> Bool #

max :: Tick -> Tick -> Tick #

min :: Tick -> Tick -> Tick #

Show Tick Source # 

Methods

showsPrec :: Int -> Tick -> ShowS #

show :: Tick -> String #

showList :: [Tick] -> ShowS #

mkTick :: Integer -> Int -> Int -> Int -> Int -> Pico -> Maybe Tick Source #

Create a Tick from valid (year, month, day, hour, minute, second)

data TsPoint a Source #

A point in a time series

Constructors

Tsp 

Fields

Instances

Eq a => Eq (TsPoint a) Source # 

Methods

(==) :: TsPoint a -> TsPoint a -> Bool #

(/=) :: TsPoint a -> TsPoint a -> Bool #

Show a => Show (TsPoint a) Source # 

Methods

showsPrec :: Int -> TsPoint a -> ShowS #

show :: TsPoint a -> String #

showList :: [TsPoint a] -> ShowS #

fromTick :: Tick -> Rational Source #

Map a Tick onto the rationals

toTick :: Rational -> Tick Source #

Map a rational onto a Tick