setAcceptWin.GeneralInsertor: Set the size of the acceptance window

Description Usage Arguments Value Author(s) See Also Examples

Description

Set 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

1
2
## S3 method for class 'GeneralInsertor'
setAcceptWin(this, value, ...)

Arguments

this

A GeneralInsertor object.

value

An integer vector of length one.

...

Not used.

Value

The new value.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralInsertor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
	# 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
 

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