Description Usage Arguments Value Author(s) See Also Examples
Get the function used for accepting/rejecting indel events.
1 2 | ## S3 method for class 'GeneralInDel'
getAcceptBy(this, ...)
|
this |
A GeneralInDel object. |
... |
Not used. |
A function object.
Botond Sipos, Gregory Jordan
For more information see GeneralInDel
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # create a GeneralInDel object
# rejecting half of the events
o<-GeneralInDel(
rate=1,
propose.by=function(process){return(5)},
accept.by=function( ){sample(c(TRUE,FALSE),1)}
);
# set/get the acceptBy function
setAcceptBy(o,value=function(){return(FALSE)}) # reject all events
getAcceptBy(o)
# set/get acceptBy function via virtual field
o$acceptBy<-function(){return(TRUE)} # accept all events
o$acceptBy
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.