networks, update: Don't talk about Boolean networks.

This commit is contained in:
Sergiu Ivanov 2020-02-23 00:05:04 +01:00
parent fbef580a01
commit cf676028d3

View file

@ -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))