Learn R Programming

phylosim (version 3.0.5)

getAcceptWin.GeneralInsertor: Get the size of the acceptance window

Description

Get the size of the acceptance window

This parameter determines the number of sites neighbouring the position (from left and right) of the insertion considered when accepting/rejecting a proposed insertion. The "insertion.tolerance" parameter is retrived from sites falling in the window specified by this parameter. The default value is 1, so the two neighbouring sites are considered by default.

Usage

# S3 method for GeneralInsertor
getAcceptWin(this, ...)

Arguments

this

A GeneralInsertor object.

...

Not used.

Value

A numeric vector of length one.

See Also

For more information see GeneralInsertor.

Examples

Run this code
# NOT RUN {
	# create a GeneralInsertor object
	i<-GeneralInsertor(rate=0.5);
	# get acceptance window size
	getAcceptWin(i)
	# get acceptance window size via virtual field
	i$acceptWin
	# set acceptance window size
	setAcceptWin(i,2)
	# set acceptance window size via virtual field
	i$acceptWin<-3
	i$acceptWin
 
# }

Run the code above in your browser using DataLab