dreye.ReceptorEstimator.hull_l1_scaling#

ReceptorEstimator.hull_l1_scaling(B, relative=True)[source]#

Scale B to fit within the hull of the system. This is equivalent to intensity scaling of an image for color science.

Parameters:
Bndarray of shape (n_samples, n_filters)

Relative total capture points.

Returns:
ndarray of shape (n_samples, n_filters)

Scaled values of B to fit within the convex hull of the stimulation system.