standard_scaler#

gammapy.utils.cluster.standard_scaler(features)[source]#

Compute standardized features by removing the mean and scaling to unit variance.

Calculated through:

\[f_\text{scaled} = \frac{f-\text{mean}(f)}{\text{std}(f)} .\]
Parameters
featuresTable

Table containing the features.

Returns
scaled_featuresTable

Table containing the scaled features (dimensionless).