getProposeBy.GeneralInDel: Get the function used for proposing indel lengths

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the function used for proposing indel lengths.

Usage

1
2
## S3 method for class 'GeneralInDel'
getProposeBy(this, ...)

Arguments

this

A GeneralInDel object.

...

Not used.

Value

A function object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralInDel.

Examples

 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
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.