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

AIC(k)=klog(Var(a1..k))+(Nk1)log(Var(ak+1..N))

which variance denoted as 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 or list) – Input time series

Return type:

numpy.ndarray

Returns:

aic - Akaike Information Criterion array