getMaxLength.ContinuousInsertor: Get the maximum length

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the maximum length.

Usage

1
2
## S3 method for class 'ContinuousInsertor'
getMaxLength(this, ...)

Arguments

this

A ContinuousInsertor object.

...

Not used.

Value

A numeric vector of length one.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see ContinuousInsertor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	# create object
	o<-ContinuousInsertor(rate=1)
	# set length sampling expression via virtual field
	o$dist<-expression(rnorm(1,mean=6,sd=3))
	# set/get maxLength
	setMaxLength(o, 3)
	getMaxLength(o)
	# set/get maxLength via virtual field
	o$maxLength<-10
	o$maxLength
	# propose a length
	proposeLength(o)
 

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