SlopeInt: Find Slope and Intercept

Description Usage Arguments Value Author(s) Examples

View source: R/SlopeInt.R

Description

Calculates slope and y-intercept of the velocity-depth function for a layer.

Usage

1
SlopeInt(v, z)

Arguments

v

2-element vector of velocities (km/s)

z

2-element vector of depths (km)

Value

List with the following elements:

g

Gradient of velocity-depth linear approximation (km/s / km)

v0

Constant term of velocity-depth linear approximation (km/s)

Author(s)

Jake Anderson

Examples

1
SlopeInt(c(5, 5.1), c(20, 22))

TauP.R documentation built on May 2, 2019, 3:25 a.m.