Start tbn.scrbl.
This commit is contained in:
parent
0396e558ce
commit
d2e4ab854c
3 changed files with 34 additions and 1 deletions
|
@ -28,4 +28,5 @@ dds currently includes the following modules:
|
||||||
@include-section["functions.scrbl"]
|
@include-section["functions.scrbl"]
|
||||||
@include-section["dynamics.scrbl"]
|
@include-section["dynamics.scrbl"]
|
||||||
@include-section["networks.scrbl"]
|
@include-section["networks.scrbl"]
|
||||||
|
@include-section["tbn.scrbl"]
|
||||||
@include-section["rs.scrbl"]
|
@include-section["rs.scrbl"]
|
||||||
|
|
|
@ -461,7 +461,7 @@ a list of arguments.
|
||||||
(random-bool-f/list '(#t #f))
|
(random-bool-f/list '(#t #f))
|
||||||
]}
|
]}
|
||||||
|
|
||||||
@section{Threshold Boolean functions}
|
@section[#:tag "tbf"]{Threshold Boolean functions}
|
||||||
|
|
||||||
@defstruct*[tbf ([weights (Vectorof Real)] [threshold Real])]{
|
@defstruct*[tbf ([weights (Vectorof Real)] [threshold Real])]{
|
||||||
|
|
||||||
|
|
32
scribblings/tbn.scrbl
Normal file
32
scribblings/tbn.scrbl
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#lang scribble/manual
|
||||||
|
@(require scribble/example racket/sandbox
|
||||||
|
(for-label typed/racket/base
|
||||||
|
"../networks.rkt"
|
||||||
|
"../utils.rkt"
|
||||||
|
"../functions.rkt"
|
||||||
|
"../dynamics.rkt"))
|
||||||
|
|
||||||
|
@(define tbn-evaluator
|
||||||
|
(parameterize ([sandbox-output 'string]
|
||||||
|
[sandbox-error-output 'string]
|
||||||
|
[sandbox-memory-limit 50])
|
||||||
|
(make-evaluator 'typed/racket #:requires '("tbn.rkt"))))
|
||||||
|
|
||||||
|
@(define-syntax-rule (ex . args)
|
||||||
|
(examples #:eval tbn-evaluator . args))
|
||||||
|
|
||||||
|
@(define-syntax-rule (deftypeform . args)
|
||||||
|
(defform #:kind "type" . args))
|
||||||
|
|
||||||
|
@(define-syntax-rule (deftype . args)
|
||||||
|
(defidform #:kind "type" . args))
|
||||||
|
|
||||||
|
@title[#:tag "tbn"]{dds/tbn: Threshold and Sign Boolean Networks (TBN and SBN)}
|
||||||
|
|
||||||
|
@defmodule[dds/tbn]
|
||||||
|
|
||||||
|
This module defines threshold Boolean networks (TBN), as well as sign
|
||||||
|
Boolean networks (SBN). The update functions in such networks are
|
||||||
|
respectively @seclink["tbf" #:doc '(lib
|
||||||
|
"dds/scribblings/dds.scrbl")]{threshold Boolean functions} and sign
|
||||||
|
Boolean functions.
|
Loading…
Reference in a new issue