expandbound function

Expand Bounds

Expand Bounds

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

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

Returns

vector, new range

Author(s)

Jonathan M. Leesjonathan.lees@unc.edu

Examples

i = 5:10 exi = expandbound(i, pct = 0.1) range(i) range(exi)
  • Maintainer: Jonathan M. Lees
  • License: GPL (>= 2)
  • Last published: 2024-07-09

Useful links