networks: Add state/tbf.
This commit is contained in:
parent
7710e56bb8
commit
1f33e6c38c
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
(provide
|
(provide
|
||||||
;; Structures
|
;; Structures
|
||||||
(struct-out dynamics)
|
(struct-out dynamics)
|
||||||
|
(contract-out [struct state/tbf ([weights (hash/c variable? number?)]
|
||||||
|
[threshold number?])])
|
||||||
;; Functions
|
;; Functions
|
||||||
(contract-out [update (-> network? state? (set/c variable? #:kind 'dont-care) state?)]
|
(contract-out [update (-> network? state? (set/c variable? #:kind 'dont-care) state?)]
|
||||||
[make-state (-> (listof (cons/c symbol? any/c)) state?)]
|
[make-state (-> (listof (cons/c symbol? any/c)) state?)]
|
||||||
|
@ -925,6 +927,10 @@
|
||||||
;;; TBF/TBN and SBF/SBN
|
;;; TBF/TBN and SBF/SBN
|
||||||
;;; ===================
|
;;; ===================
|
||||||
|
|
||||||
|
;;; A state TBF is a TBF with named inputs. A state TBF can be
|
||||||
|
;;; applied to states in an unambiguous ways.
|
||||||
|
(struct state/tbf (weights threshold))
|
||||||
|
|
||||||
;;; A TBN is a network form mapping TBFs to variables.
|
;;; A TBN is a network form mapping TBFs to variables.
|
||||||
(define tbn? (hash/c variable? tbf?))
|
(define tbn? (hash/c variable? tbf?))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue