Copyright | (c) Fabricio Olivetti 2021 - 2024 |
---|---|
License | BSD3 |
Maintainer | fabricio.olivetti@gmail.com |
Stability | experimental |
Portability | FlexibleInstances, DeriveFunctor, ScopedTypeVariables |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Evaluation of SRTree expressions
Synopsis
- evalTree :: SRMatrix -> PVector -> Fix SRTree -> SRVector
- evalOp :: Floating a => Op -> a -> a -> a
- evalFun :: Floating a => Function -> a -> a
- cbrt :: Floating a => a -> a
- inverseFunc :: Function -> Function
- invertibles :: [Function]
- evalInverse :: Floating a => Function -> a -> a
- invright :: Floating a => Op -> a -> a -> a
- invleft :: Floating a => Op -> a -> a -> a
- replicateAs :: SRMatrix -> Double -> SRVector
- type SRVector = Array D Ix1 Double
- type PVector = Array S Ix1 Double
- type SRMatrix = Array S Ix2 Double
Documentation
evalTree :: SRMatrix -> PVector -> Fix SRTree -> SRVector #
Evaluates the tree given a vector of variable values, a vector of parameter values and a function that takes a Double and change to whatever type the variables have. This is useful when working with datasets of many values per variables.
inverseFunc :: Function -> Function #
Returns the inverse of a function. This is a partial function.
invertibles :: [Function] #
List of invertible functions
evalInverse :: Floating a => Function -> a -> a #
evals the inverse of a function
replicateAs :: SRMatrix -> Double -> SRVector #
type PVector = Array S Ix1 Double #
Vector of parameter values. Needs to be strict to be readily accesible.