Learn R Programming

phylosim (version 3.0.5)

BrownianPath.BrownianInsertor: Generate a Brownian path

Description

Generate a Brownian path.

This method generates a Brownian path given the scale parameter a (determining "noisiness") and the vector p describing the trends. More useful as a static method.

Usage

# S3 method for BrownianInsertor
BrownianPath(this, p=NA, a=NA, ...)

Arguments

this

A BrownianInsertor object.

p

Path parameter (a numeric vector).

a

Scale paramater (a numeric vector of length one).

...

Not used.

Value

A numeric vector.

See Also

For more information see BrownianInsertor.

Examples

Run this code
# NOT RUN {
	path<-BrownianInsertor$BrownianPath(a=2,p=1:10);
	path
	plot(path)
 
# }

Run the code above in your browser using DataLab