HsASA-0.1: A haskell interface to Lester Ingber's adaptive simulating annealing code

Optimize.Parameter

Description

Defines the mapping between haskell types and a set of optimization parameters used to represent said type.

Documentation

data ParamInfo Source

Constructors

ParamInfo 

class Empty a whereSource

Methods

empty :: aSource

Instances

Empty () 
Empty (Maybe a) 
Empty (Limit a) 
(Empty x, Empty y) => Empty (x, y) 
(Empty x, Empty y, Empty z) => Empty (x, y, z) 

class Empty z => Parameter z x | x -> z whereSource

Methods

pokeParam :: z -> x -> Ptr Double -> IO ()Source

peekParam :: z -> Ptr Double -> IO xSource

paramInfo :: x -> z -> [ParamInfo] -> [ParamInfo]Source

numParams :: x -> z -> IntSource

Instances

Parameter () Bool 
Parameter () Char 
Parameter () () 
Parameter zb b => Parameter zb (Maybe b) 
Parameter (Limit Double) Double 
Parameter (Limit Float) Float 
Parameter (Limit Int) Int 
(Parameter za a, Parameter zb b) => Parameter (za, zb) (Either a b) 
(Parameter za a, Parameter zb b) => Parameter (za, zb) (a, b) 
(Parameter za a, Parameter zb b, Parameter zc c) => Parameter (za, zb, zc) (a, b, c) 

advancePtr :: forall a. Storable a => Ptr a -> Int -> Ptr aSource