Source code for feets.extractors.ext_gskew
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-2024, Cabral, Juan
# Copyright (c) 2025, QuatroPe; ClariĆ”, Felipe
# License: MIT
# Full Text:
# https://github.com/quatrope/feets/blob/master/LICENSE
# =============================================================================
# DOC
# =============================================================================
"""Gskew extractor."""
# =============================================================================
# IMPORTS
# =============================================================================
import numpy as np
from .extractor import Extractor
from ..libs import doctools
# =============================================================================
# EXTRACTOR CLASS
# =============================================================================
[docs]
class Gskew(Extractor):
r"""Gskew extractor.
**Gskew**
Median-of-magnitudes based measure of the skew.
.. math::
Gskew = m_{q3} + m_{q97} - 2m
Where:
- :math:`m_{q3}` is the median of magnitudes lesser or equal than the
quantile 3.
- :math:`m_{q97}` is the median of magnitudes greater or equal than the
quantile 97.
- :math:`m` is the median of magnitudes.
"""
features = ["Gskew"]