networks, update: Don't talk about Boolean networks.
This commit is contained in:
parent
fbef580a01
commit
cf676028d3
1 changed files with 2 additions and 2 deletions
|
@ -60,12 +60,12 @@
|
|||
|
||||
;;; Given a state s updates all the variables from xs. This
|
||||
;;; corresponds to a parallel mode.
|
||||
(define (update bn ; the Boolean network
|
||||
(define (update n ; the network
|
||||
s ; the state to operate on
|
||||
xs) ; the variables to update
|
||||
(let ([new-s (hash-copy s)])
|
||||
(for ([x xs])
|
||||
(let ([f (hash-ref bn x)])
|
||||
(let ([f (hash-ref n x)])
|
||||
(hash-set! new-s x (f s))))
|
||||
new-s))
|
||||
|
||||
|
|
Loading…
Reference in a new issue