Data frame with the same structure as features, containing
normalized sample-feature values.
Arguments
features
Data frame with a numeric wavenumber column and one
or more numeric sample-feature columns.
method
Normalization method: "min-max" or "L2".
Details
With method = "min-max", normalization is carried out row-wise across
samples. Rows containing identical values for every sample are set to zero.
With method = "L2", normalization is performed column-wise for each
sample. Columns with zero L2 norm are retained as zero.