networks: Remove make-network-from-forms.
This commit is contained in:
parent
236dca704d
commit
b8f29d905d
1 changed files with 0 additions and 13 deletions
13
networks.rkt
13
networks.rkt
|
@ -30,8 +30,6 @@
|
||||||
[booleanize-state (-> state? state?)]
|
[booleanize-state (-> state? state?)]
|
||||||
[update-function-form->update-function (-> update-function-form? update-function/c)]
|
[update-function-form->update-function (-> update-function-form? update-function/c)]
|
||||||
[network-form->network (-> network-form? network?)]
|
[network-form->network (-> network-form? network?)]
|
||||||
[make-network-from-forms (-> (listof (cons/c symbol? update-function-form?))
|
|
||||||
network?)]
|
|
||||||
[list-syntactic-interactions (-> network-form? variable? (listof variable?))]
|
[list-syntactic-interactions (-> network-form? variable? (listof variable?))]
|
||||||
[build-syntactic-interaction-graph (-> network-form? graph?)]
|
[build-syntactic-interaction-graph (-> network-form? graph?)]
|
||||||
[interaction? (-> network? domain-mapping/c variable? variable? boolean?)]
|
[interaction? (-> network? domain-mapping/c variable? variable? boolean?)]
|
||||||
|
@ -270,17 +268,6 @@
|
||||||
(define s (make-state '((a . #t) (b . #t))))
|
(define s (make-state '((a . #t) (b . #t))))
|
||||||
(check-equal? ((hash-ref (network-functions bn) 'a) s) #t)))
|
(check-equal? ((hash-ref (network-functions bn) 'a) s) #t)))
|
||||||
|
|
||||||
;;; Build a network from a list of pairs of forms of update functions.
|
|
||||||
(define (make-network-from-forms forms)
|
|
||||||
(network-form->network (make-immutable-hash forms)))
|
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(test-case "make-network-from-forms"
|
|
||||||
(define bn (make-network-from-forms '((a . (and a b))
|
|
||||||
(b . (not b)))))
|
|
||||||
(define s (make-state '((a . #t) (b . #t))))
|
|
||||||
(check-equal? ((hash-ref bn 'a) s) #t)))
|
|
||||||
|
|
||||||
|
|
||||||
;;; ============================
|
;;; ============================
|
||||||
;;; Inferring interaction graphs
|
;;; Inferring interaction graphs
|
||||||
|
|
Loading…
Reference in a new issue