plot-light-0.3.3.1: A lightweight plotting library, exporting to SVG
Data.TimeSeries
Synopsis
data Tick Source #
An instant, defined by date (Day) and TimeOfDay
Constructors
Instances
Methods
(==) :: Tick -> Tick -> Bool #
(/=) :: Tick -> Tick -> Bool #
compare :: Tick -> Tick -> Ordering #
(<) :: Tick -> Tick -> Bool #
(<=) :: Tick -> Tick -> Bool #
(>) :: Tick -> Tick -> Bool #
(>=) :: Tick -> Tick -> Bool #
max :: Tick -> Tick -> Tick #
min :: Tick -> Tick -> Tick #
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
Fields
(==) :: TsPoint a -> TsPoint a -> Bool #
(/=) :: TsPoint a -> TsPoint a -> Bool #
showsPrec :: Int -> TsPoint a -> ShowS #
show :: TsPoint a -> String #
showList :: [TsPoint a] -> ShowS #
tickToFractional :: Fractional b => TsPoint a -> b Source #
fromTick :: Tick -> Rational Source #
Map a Tick onto the rationals
toTick :: Rational -> Tick Source #
Map a rational onto a Tick
hourTick :: Rational Source #
halfHourTick :: Rational Source #
quarterHourTick :: Rational Source #