2.1.6.1.2. sf_tools.signal.filter module

FILTER ROUTINES

This module contains methods for distance measurements in cosmology.

Author:Samuel Farrens <samuel.farrens@gmail.com>
Version:1.1
Date:20/10/2017
sf_tools.signal.filter.Gaussian_filter(x, sigma, norm=True)[source]

Gaussian filter

This method implements a Gaussian filter.

Parameters:
  • x (float) – Input data point
  • sigma (float) – Standard deviation (filter scale)
  • norm (bool) – Option to return normalised data. Default (norm=True)
Returns:

Return type:

float Gaussian filtered data point

sf_tools.signal.filter.mex_hat(x, sigma)[source]

Mexican hat

This method implements a Mexican hat (or Ricker) wavelet.

Parameters:
  • x (float) – Input data point
  • sigma (float) – Standard deviation (filter scale)
Returns:

Return type:

float Mexican hat filtered data point

sf_tools.signal.filter.mex_hat_dir(x, y, sigma)[source]

Directional Mexican hat

This method implements a directional Mexican hat (or Ricker) wavelet.

Parameters:
  • x (float) – Input data point for Gaussian
  • y (float) – Input data point for Mexican hat
  • sigma (float) – Standard deviation (filter scale)
Returns:

Return type:

float directional Mexican hat filtered data point