k_bins: Function to determine bin numbers for catalog determination

Description Usage Arguments Value

View source: R/seismic_catalog.R View source: R/process_seismic_catalog.R View source: R/is_catalog_plot_functions.R

Description

The ECDF function requires binning earthquakes into discrete categories. This complicates our modelling process by turning a continuous distribution into a discrete categorical series of bins. There are There are several methods for determining this binning: Sturges, H. (1926) The choice of a class-interval. J. Amer. Statist. Assoc., 21, 65-66. Scott, D.W. (1979) On optimal and data-based histograms. Biometrika, 66, 605-610. Freedman, D. and Diaconis, P. (1981) On this histogram as a density estimator: L2 theory. Zeit. Wahr. ver. Geb., 57, 453-476. Wand, M. P. (1997). Data-based choice of histogram bin width. The American Statistician, 51(1), 59-64. We use three common methods to calculate the deterministic b-value of the catalogue. These functions are also used in the bootstrap estimation of uncertainity.

The ECDF function requires binning earthquakes into discrete categories. This complicates our modelling process by turning a continuous distribution into a discrete categorical series of bins. There are There are several methods for determining this binning: Sturges, H. (1926) The choice of a class-interval. J. Amer. Statist. Assoc., 21, 65-66. Scott, D.W. (1979) On optimal and data-based histograms. Biometrika, 66, 605-610. Freedman, D. and Diaconis, P. (1981) On this histogram as a density estimator: L2 theory. Zeit. Wahr. ver. Geb., 57, 453-476. Wand, M. P. (1997). Data-based choice of histogram bin width. The American Statistician, 51(1), 59-64. We use three common methods to calculate the deterministic b-value of the catalogue. These functions are also used in the bootstrap estimation of uncertainity.

The ECDF function requires binning earthquakes into discrete categories. This complicates our modelling process by turning a continuous distribution into a discrete categorical series of bins. There are There are several methods for determining this binning: Sturges, H. (1926) The choice of a class-interval. J. Amer. Statist. Assoc., 21, 65-66. Scott, D.W. (1979) On optimal and data-based histograms. Biometrika, 66, 605-610. Freedman, D. and Diaconis, P. (1981) On this histogram as a density estimator: L2 theory. Zeit. Wahr. ver. Geb., 57, 453-476. Wand, M. P. (1997). Data-based choice of histogram bin width. The American Statistician, 51(1), 59-64. We use three common methods to calculate the deterministic b-value of the catalogue. These functions are also used in the bootstrap estimation of uncertainity.

Usage

1
2
3
4
5
k_bins(mw_vector, method = "rice")

k_bins(mw_vector, method = "rice")

k_bins(mw_vector, method = "rice")

Arguments

mw_vector

a mw_vector of magnitudes

method

a character of methods: 'rice', 'sturges', 'freedman'

mw_vector

a mw_vector of magnitudes

method

a character of methods: 'rice', 'sturges', 'freedman'

mw_vector

a mw_vector of magnitudes

method

a character of methods: 'rice', 'sturges', 'freedman'

Value

an integer number of bins

an integer number of bins

an integer number of bins


Enlightengeo/GeoscienceBC_2019-008 documentation built on Feb. 4, 2021, 12:43 p.m.