obspy.signal.trigger.aic_simpleο
- aic_simple(a)[source]ο
Simple Akaike Information Criterion [Maeda1985].
Itβs computed directly from input data \(a\) and defined as
\[\text{AIC}(k) = k\log(\text{Var}(a_{1..k})) + (N-k-1)\log(\text{Var}(a_{k+1..N}))\]which variance denoted as \(\text{Var}\).
The true output is one data sample less. To make it convenient with other metrics in this module, where the output length is preserved, the last element is appended to the output:
aic[-2] == aic[-1]
.- Parameters
a (
numpy.ndarray
orlist
) β Input time series- Return type
- Returns
aic - Akaike Information Criterion array