sgd-0.1.0: Stochastic gradient descent

Safe HaskellNone

Numeric.SGD.LogSigned

Description

Module provides data type for signed log-domain calculations.

Synopsis

Documentation

data LogSigned Source

Signed real value in the logarithmic domain.

Constructors

LogSigned 

Fields

pos :: !LogFloat

Positive component

neg :: !LogFloat

Negative component

logSigned :: Double -> LogSignedSource

Smart LogSigned constructor.

fromPos :: LogFloat -> LogSignedSource

Make LogSigned from a positive, log-domain number.

fromNeg :: LogFloat -> LogSignedSource

Make LogSigned from a negative, log-domain number.

toNorm :: LogSigned -> DoubleSource

Shift LogSigned to a normal domain.