spac.transformations.arcsinh_transformation_core(data, co_factor=None, percentile=None)[source]

Apply arcsinh transformation using a co-factori or a percentile.

Parameters:
  • data (np.ndarray) – The data to transform.

  • co_factor (float, optional) – A fixed positive number to use as a co-factor for the transformation.

  • percentile (float, optional) – The percentile to determine the co-factor if co_factor is not provided. The percentile is computed for each feature (column) individually.

Returns:

The transformed data.

Return type:

np.ndarray

Raises:

ValueError – If both co_factor and percentile are None. If both co_factor and percentile are specified. If percentile is not in the range [0, 100].