dreye.ReceptorEstimator.hull_dist_scaling#

ReceptorEstimator.hull_dist_scaling(B, neutral_point=None, relative=True)[source]#

Scale B within L1-normalized simplex plot to fit within hull of system. This is equivalent to saturation scaling of an image for color science.

Parameters:
Bndarray of shape (n_samples, n_filters)

Relative total capture points.

neutral_pointndarray of shape (n_filters), optional

The neutrality point to use as the center of the simplex plot for scaling each vector. If None, then the center is set to the adaptational state of equal capture for all filters. By default None.

Returns:
ndarray of shape (n_samples, n_filters)

The scaled versions of B.