Zephyr Scientific Library (zscilib)
Functions
Normalisation Functions

Functions

int zsl_clr_norm_spd (struct zsl_clr_spd *spd)
 Normalises the supplied spectral power distribution data to a 1.0 range. This function call is destructive to the input zsl_clr_spd data. More...
 

Detailed Description

Helper functions to normalise data sets.

Function Documentation

◆ zsl_clr_norm_spd()

int zsl_clr_norm_spd ( struct zsl_clr_spd spd)

Normalises the supplied spectral power distribution data to a 1.0 range. This function call is destructive to the input zsl_clr_spd data.

Parameters
spdPointer to the spectral power distribution data to normalise.
Returns
0 on normal execution, otherwise an appropriate error code.