colour.RGB_colourspace_visible_spectrum_coverage_MonteCarlo#

colour.RGB_colourspace_visible_spectrum_coverage_MonteCarlo(colourspace: colour.models.rgb.rgb_colourspace.RGB_Colourspace, samples: int = 1000000, random_generator: Callable = random_triplet_generator, random_state: Optional[numpy.random.mtrand.RandomState] = None) float[source]#

Return given RGB colourspace percentage coverage of visible spectrum volume using Monte Carlo method.

Parameters
Returns

Percentage coverage of visible spectrum volume.

Return type

numpy.floating

Examples

>>> from colour.models import RGB_COLOURSPACE_sRGB as sRGB
>>> prng = np.random.RandomState(2)
>>> RGB_colourspace_visible_spectrum_coverage_MonteCarlo(
...     sRGB, 10e3, random_state=prng)  
46...