analysis.BPositiveBValueEstimator#

class seismostats.analysis.BPositiveBValueEstimator#

Estimator to calculate the b-value and other parameters using only the earthquakes with magnitudes \(m_i \ge m_{i-1} + dmc\).

Source:

Van der Elst 2021 (J Geophysical Research: Solid Earth, Vol 126, Issue 2)

Examples

>>> import numpy as np
>>> from seismostats.analysis import BPositiveBValueEstimator

>>> magnitudes = np.array([2. , 2.5, 2.1, 2.2, 2.5, 2.2, 2.6, 2.3,
...                        2.7, 2.2, 2.4, 2. , 2.7, 2.2, 2.3, 2.1,
...                        2.4, 2.6, 2.2, 2.2, 2.7, 2.4, 2.2, 2.5])

>>> my_estimator = BPositiveBValueEstimator()
>>> my_estimator.calculate(
...     magnitudes=magnitudes, mc=2.0, delta_m=0.1, dmc=0.2)

>>> my_estimator.b_value

1.9188552623891313

Attributes

b_value

The b-value of the Gutenberg-Richter law.

beta

The beta value of the Gutenberg-Richter law.

delta_m

Bin size of the discretized magnitudes.

dmc

The dmc value used for the calculation.

magnitudes

The positive magnitude differences used for the calculation.

mc

The completeness magnitude used to estimate the b-value.

n

Number of magnitudes used to estimate the b-value.

std

Shi and Bolt uncertainty of the b-value estimate.

std_beta

Shi and Bolt uncertainty of the beta estimate.

value

The b-value of the Gutenberg-Richter law.

weights

The weights used to estimate the b-value.

Methods

calculate

Calculates the b-value of the Gutenberg-Richter (GR) law.

p_lilliefors

p-value of the Lilliefors test.