bridge: Brownian bridge

Description Usage Arguments Value

View source: R/splat-simulate.R

Description

Calculate a smoothed Brownian bridge between two points. A Brownian bridge is a random walk with fixed end points.

Usage

1
bridge(x = 0, y = 0, N = 5, n = 100, sigma.fac = 0.8)

Arguments

x

starting value.

y

end value.

N

number of steps in random walk.

n

number of points in smoothed bridge.

sigma.fac

multiplier specifying how extreme each step can be.

Value

Vector of length n following a path from x to y.


splatter documentation built on Dec. 7, 2018, 6 p.m.