bn: make-bn -> make-bn-funcs.
This commit is contained in:
parent
35abded486
commit
608b606717
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
||||||
[f2 (λ ([s : State])
|
[f2 (λ ([s : State])
|
||||||
(let ([x2 (hash-ref s 'x2)])
|
(let ([x2 (hash-ref s 'x2)])
|
||||||
(not x2)))]
|
(not x2)))]
|
||||||
[bn (make-bn `((x1 . ,f1) (x2 . ,f2)))])
|
[bn (make-bn-funcs `((x1 . ,f1) (x2 . ,f2)))])
|
||||||
|
|
||||||
(test-case "One-step syncronous update"
|
(test-case "One-step syncronous update"
|
||||||
(let* ([s (make-state '((x1 . #t) (x2 . #f)))]
|
(let* ([s (make-state '((x1 . #t) (x2 . #f)))]
|
||||||
|
|
6
bn.rkt
6
bn.rkt
|
@ -10,7 +10,7 @@
|
||||||
(require "utils.rkt")
|
(require "utils.rkt")
|
||||||
|
|
||||||
(provide Variable State UpdateFunc Network
|
(provide Variable State UpdateFunc Network
|
||||||
update make-state make-bn update-func-form->update-func
|
update make-state make-bn-funcs update-func-form->update-func
|
||||||
bn-form->bn)
|
bn-form->bn)
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@
|
||||||
(make-hash mappings))
|
(make-hash mappings))
|
||||||
|
|
||||||
;;; A version of make-hash restricted to creating Boolean networks.
|
;;; A version of make-hash restricted to creating Boolean networks.
|
||||||
(: make-bn (-> (Listof (Pairof Variable UpdateFunc)) Network))
|
(: make-bn-funcs (-> (Listof (Pairof Variable UpdateFunc)) Network))
|
||||||
(define (make-bn funcs)
|
(define (make-bn-funcs funcs)
|
||||||
(make-hash funcs))
|
(make-hash funcs))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue