observables | R Documentation |
The function observables
access the list of observables
contained in this EvidenceSet
. The function seqno
access the
order in which the evidence sets were incorporated into the student
record.
observables(x)
x |
An |
The observables
function access the data
field of the
underlying P4Message
. This should be a named
list of values that the BNEngine
knows how to
process.
The function observables
returns a named list of observable
values.
Russell Almond
EvidenceSet
, EvidenceSet
StudentRecord
, handleEvidence
P4Message
e1 <- EvidenceSet(uid="S1",app="Test",context="PPcompEM",
obs=list("CompensatoryObs"="Right"))
e2 <- EvidenceSet(uid="S1",app="Test",context="PPdurAttEM",
obs=list("Attempts"=2,"Duration"=38.3))
stopifnot(all.equal(observables(e1),
list("CompensatoryObs"="Right")))
stopifnot(all.equal(observables(e2)$Attempts,2))
stopifnot(is.na(seqno(e1)))
seqno(e1) <- 1
stopifnot(seqno(e1)==1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.