Learn R Programming

TauP.R (version 1.5)

SlopeInt: Find Slope and Intercept

Description

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

Usage

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)

Examples

Run this code
# NOT RUN {
SlopeInt(c(5, 5.1), c(20, 22))

# }

Run the code above in your browser using DataLab