Description Usage Arguments Value Author(s) See Also Examples
Set the function used for proposing indel lengths.
The function must return a numeric vector of length one. The function must have an argument named "process" which will hold the calling process object.
1 2 | ## S3 method for class 'GeneralInDel'
setProposeBy(this, value, ...)
|
this |
A GeneralInDel object. |
value |
A function object returning a numeric vector of length one. |
... |
Not used. |
The function object (invisible).
Botond Sipos, Gregory Jordan
For more information see GeneralInDel
.
1 2 3 4 5 6 7 8 9 10 | # create a GeneralInDel object
# proposing events with a constant length of 5
o<-GeneralInDel(rate=1, propose.by=function(process){return(5)});
# set/get the proposeBy function
setProposeBy(o,value=function(process){return(6)})
getProposeBy(o)
# set/get proposeBy function via virtual field
o$proposeBy<-function(process){return(3)}
o$proposeBy
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.