expandbound: Expand Bounds

Description

Calculate an expanded bounding region based on a percent of the existing boundaries

Usage

1
expandbound(g, pct = 0.1)

Arguments

g

vector of values

pct

fractional percent to expand

Details

uses the range of the exising vector to estimate the expanded bound

Value

vector, new range

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

1
2
3
4
i = 5:10
exi = expandbound(i, pct = 0.1)
range(i)
range(exi)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.