Learn R Programming

TauP.R (version 1.0)

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:
  • gGradient of velocity-depth linear approximation (km/s / km)
  • v0Constant term of velocity-depth linear approximation (km/s)

Examples

Run this code
SlopeInt(c(5, 5.1), c(20, 22))

Run the code above in your browser using DataLab