Safe HaskellSafe

Model

Description

 

Synopsis

Documentation

data NewTick Source #

Type for a new incoming tick

Constructors

NewTick 

Fields

Instances

Generic NewTick Source # 

Associated Types

type Rep NewTick :: * -> *

Methods

from :: NewTick -> Rep NewTick x

to :: Rep NewTick x -> NewTick

MessagePack NewTick Source # 

Methods

toObject :: NewTick -> Object

fromObject :: (Applicative m, Monad m) => Object -> m NewTick

type Rep NewTick Source # 
type Rep NewTick = D1 * (MetaData "NewTick" "Model" "main" False) (C1 * (MetaCons "NewTick" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "newOpen") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "lastClose") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "lastHigh") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "lastLow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "lastVolume") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double))))))

data X Source #

x^t

Constructors

X 

Fields

Instances

Generic X Source # 

Associated Types

type Rep X :: * -> *

Methods

from :: X -> Rep X x

to :: Rep X x -> X

Default X Source # 

Methods

def :: X

type Rep X Source # 
type Rep X = D1 * (MetaData "X" "Model" "main" False) (C1 * (MetaCons "X" PrefixI True) (S1 * (MetaSel (Just Symbol "lastpticks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [NewTick])))

data Y Source #

y^t

Constructors

Y 

Fields

data Prediction Source #

Prediction output: either Prediction y^t, or Ingested, which means the data point was aggregated, but no prediction was produced.

Constructors

Prediction 

Fields

Ingested 

Instances

Show Prediction Source # 

Methods

showsPrec :: Int -> Prediction -> ShowS

show :: Prediction -> String

showList :: [Prediction] -> ShowS

MessagePack Prediction Source # 

Methods

toObject :: Prediction -> Object

fromObject :: (Applicative m, Monad m) => Object -> m Prediction