analysis.ClassicAValueEstimator#

class seismostats.analysis.ClassicAValueEstimator#

Returns the a-value of the Gutenberg-Richter (GR) law.

\[N(m) = 10 ^ {a - b \cdot (m - m_{ref})},\]

where \(N(m)\) is the number of events with magnitude larger than or equal to \(m\) that occurred in the timeframe of the catalog, \(a\) and \(b\) are the a- and b-value, and \(m_{ref}\) is the reference magnitude above which earthquakes are counted.

Examples

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

>>> magnitudes = np.array([2.1, 2.3, 2.0, 2.0, 2.1, 2.2, 2.1, 2.3,
...                        2.0, 2.0])

>>> my_estimator = ClassicAValueEstimator()
>>> my_estimator.calculate(
...     magnitudes=magnitudes, mc=2.0, delta_m=0.1)

>>> my_estimator.a_value

1.0

Attributes

a_value

The a value of the Gutenberg-Richter law.

b_value

The b-value of the Gutenberg-Richter law.

delta_m

The bin size of the discretized magnitudes.

m_ref

The reference magnitude.

magnitudes

The magnitudes used to estimate the a-value.

mc

The completeness magnitude.

n

Number of magnitudes used to estimate the a-value.

scaling_factor

The scaling factor.

std

Uncertainty of the a-value estimate, implemented as a placeholder.

value

The a value of the Gutenberg-Richter law.

Methods

calculate

Returns the a-value of the Gutenberg-Richter (GR) law.