fmd: The Earthquake FMD

Description Usage Arguments Details Value Examples

Description

Compute the earthquake frequency magnitude distribution (FMD) for a vector of earthquake magnitudes m with binning mbin.

Usage

1
fmd(m, mbin = 0.1)

Arguments

m

a numeric vector of earthquake magnitudes

mbin

the magnitude binning value (if not provided, mbin = 0.1)

Details

Magnitude intervals have the form (mi - mbin/2, mi + mbin/2], as defined in function graphics::hist (for its default right = TRUE).

Value

The earthquake FMD data frame of 3 parameters:

mi

the magnitude bins

ni

the non-cumulative number of earthquakes of magnitude mi

Ni

the cumulative number of earthquakes of magnitude mi

Examples

1
2
3
4
5
mbin <- 0.1
beta <- log(10); mc <- 2
m <- mc - mbin / 2 + rexp(1e3, beta)
mdistr <- fmd(m)
View(mdistr)

amignan/rseismNet documentation built on July 8, 2019, 6:53 p.m.