analysis.AMorePositiveAValueEstimator#
- class seismostats.analysis.AMorePositiveAValueEstimator#
Returns the a-value of the Gutenberg-Richter (GR) law using earthquake pairs for which the latter is the first one that is larger than the former by some margin, \(m_j \ge m_{i} + dmc\).
- Source:
van der Elst and Page 2023 (JGR: Solid Earth, Vol 128, Issue 10).
Examples
>>> import numpy as np >>> from seismostats.analysis import AMorePositiveAValueEstimator >>> magnitudes = np.array([2.1, 2.3, 2.0, 2.0, 2.1, 2.2, 2.1, 2.3, ... 2.0, 2.0]) >>> times = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) >>> my_estimator = AMorePositiveAValueEstimator() >>> my_estimator.calculate(magnitudes=magnitudes, mc=2.0, ... delta_m=0.1, times=times, b_value=1.0) >>> my_estimator.a_value 0.730070812347905
Attributes
The a value of the Gutenberg-Richter law.
The b-value of the Gutenberg-Richter law.
The bin size of the discretized magnitudes.
The reference magnitude.
The magnitudes used to estimate the a-value.
The completeness magnitude.
Number of magnitudes used to estimate the a-value.
The scaling factor.
Uncertainty of the a-value estimate, implemented as a placeholder.
The a value of the Gutenberg-Richter law.
Methods
- param magnitudes:
Array of magnitudes.