Add UpdateFunction and DomainMapping.
This commit is contained in:
parent
85566d7479
commit
5efe086d06
2 changed files with 17 additions and 1 deletions
|
@ -5,9 +5,11 @@
|
||||||
typed/graph racket/random)
|
typed/graph racket/random)
|
||||||
|
|
||||||
(provide
|
(provide
|
||||||
State)
|
State UpdateFunction DomainMapping)
|
||||||
|
|
||||||
(define-type (State a) (VariableMapping a))
|
(define-type (State a) (VariableMapping a))
|
||||||
|
(define-type (UpdateFunction a) (-> (State a) a))
|
||||||
|
(define-type (DomainMapping a) (VariableMapping (Listof a)))
|
||||||
)
|
)
|
||||||
|
|
||||||
(require 'typed)
|
(require 'typed)
|
||||||
|
|
|
@ -34,6 +34,20 @@ the variables. A synonym of @racket[VariableMapping].
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@defform[(UpdateFunction a)]{
|
||||||
|
|
||||||
|
An update function is a function computing a value from the given
|
||||||
|
state. This is a synonym of the type @racket[(-> (State a) a)].
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@defform[(DomainMapping a)]{
|
||||||
|
|
||||||
|
A domain mapping is a hash table mapping variables to the lists of values in
|
||||||
|
their domains.
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@section{Syntactic description of networks}
|
@section{Syntactic description of networks}
|
||||||
|
|
||||||
@section{Inferring interaction graphs}
|
@section{Inferring interaction graphs}
|
||||||
|
|
Loading…
Reference in a new issue