API reference
API reference
Select your platform
No SDKs available
No versions available

StochasticMask Class

Extends Mask2D
A mask that randomly samples a probability from another mask and returns 1 if the sampled value is greater than or equal to the threshold.

Fields

CompositeMaskAdd.MaskLayer probabilitySource[Get]

Member Functions

Executes the mask on a candidate and returns the value.
Parameters
candidate
Candidate with the information from the distribution
Returns
The float depending on the mask
Checks if the candidate is valid for the given mask.
Parameters
c
Candidate with the information from the distribution
Returns
true if valid
Did you find this page helpful?
Thumbs up icon
Thumbs down icon