Scale matrix X according to scale_type
Utilises the JTPscale method written by Jake Pearce.
Variable | Type | Default Value | Description |
---|---|---|---|
*spectra | csm_spectra | None | csm_spectra object containing spectral matrix. |
direction | str | 'r' | 'r' to scale along rows, 'c' for columns |
scale_type | str | 'none' | The type of scaling, currently only 'uv', 'mc' or 'none' supported |
Variable | Type | Description |
---|---|---|
csm_scale | csm_wrapper | Object with some stored inputs, the outputs and auditInfo. |
csm_scale.output.scaledX | csm_data | Scaled csm_data object. |
csm_scale.output.scaledX.matrix | m*n | Scaled spectral matrix. |
csm_scale.output.means | 1*n | Means of each vector. |
csm_scale.output.sDeviations | 1*n | Standard Deviation of each vector. |
Copyright Imperial College London 2019