Learn R Programming

phylosim (version 3.0.5)

getProbs.DiscreteDeletor: Get the deletion length probabilities

Description

Get the deletion length probabilities.

Usage

# S3 method for DiscreteDeletor
getProbs(this, ...)

Arguments

this

A DiscreteDeletor object.

...

Not used.

Value

A numeric vector with the deletion length probabilities.

See Also

For more information see DiscreteDeletor.

Examples

Run this code
# NOT RUN {
	# create a DiscreteDeletor object
	d<-DiscreteDeletor(rate=1, sizes=1:3)
	# set/get length probabilities
	setProbs(d,c(1/3,1/3,1/3)) # equal probabilites
	getProbs(d)
	# set/get length probabilities via virtual field
	x<-c(2,2,1)
	# normalize x
	x<-x/sum(x)
	d$probs<-x
	d$probs
 
# }

Run the code above in your browser using DataLab