CSM Scale


Scale matrix X according to scale_type

Utilises the JTPscale method written by Jake Pearce.

Usage

model = csm_scale( spectra, 'direction', direction, 'scale_type', scale_type )

Arguments (* = required)

VariableTypeDefault ValueDescription
*spectracsm_spectraNonecsm_spectra object containing spectral matrix.
directionstr'r''r' to scale along rows, 'c' for columns
scale_typestr'none'The type of scaling, currently only 'uv', 'mc' or 'none' supported

Returns

VariableTypeDescription
csm_scalecsm_wrapperObject with some stored inputs, the outputs and auditInfo.
csm_scale.output.scaledXcsm_dataScaled csm_data object.
csm_scale.output.scaledX.matrixm*nScaled spectral matrix.
csm_scale.output.means1*nMeans of each vector.
csm_scale.output.sDeviations1*nStandard Deviation of each vector.

Copyright Imperial College London 2019