OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-generate commits / 9ef5ce9

Lost som initialization
9ef5ce9489716dc4d6999b83657e0f4a5bf5f8c7
by Linas Vepstas <linasvepstas@gmail.com> · 2020-04-22T16:38:44.000Z

Changed files (1) +4 -1

demo/seir.scm +4 -1
……@@ -484,6 +484,9 @@
484484 (Present (Member (Variable "$indiv") anchor))
485485 (Equal (ValueOf (Variable "$indiv") seir-state) STATE)))))
486486
487; Initially, all individuals are unexposed. Just get a list of them.
488(define all-individuals (get-individuals-in-state susceptible))
489
487490; A function that reports the current stats on the population.
488491(define (report-stats)
489492 (format #t
……@@ -492,7 +495,7 @@
492495 (length (get-individuals-in-state infected))
493496 (length (get-individuals-in-state recovered))
494497 (length (get-individuals-in-state died))
495 (length individual-list))
498 (length all-individuals))
496499 *unspecified*)
497500
498501; ---------------------------------------------------------------------