CelLink
  • Installation
  • Tutorials
  • API documentation
CelLink
  • API documentation
  • CelLink.utils
  • CelLink.utils.drop_low_variability_columns
  • View page source

CelLink.utils.drop_low_variability_columns

CelLink.utils.drop_low_variability_columns(arr_list, tol=1e-8)[source]

Drop columns for which the standard deviation is below a specified tolerance in any one of the arrays in arr_list. This helps in removing columns with zero or near-zero variability across multiple datasets.

Parameters:
  • arr_lst (list of np.array) – List of arrays where each array must have the same number of columns.

  • tol (float, default=1e-8) – Tolerance threshold below which the standard deviation is considered zero.

Returns:

list of np.array – List of arrays with columns of zero variability removed.

Previous Next

© Copyright Xin Luo.

Built with Sphinx using a theme provided by Read the Docs.