API reference

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

probabilitySource : CompositeMaskAdd.MaskLayer
Signature
CompositeMaskAdd.MaskLayer probabilitySource

Methods

Check ( c )
Checks if the candidate is valid for the given mask.
Signature
override bool Check(Candidate c)
Parameters
c: Candidate  Candidate with the information from the distribution
Returns
override bool  true if valid
SampleMask ( candidate )
Executes the mask on a candidate and returns the value.
Signature
override float SampleMask(Candidate c)
Parameters
candidate: Candidate  Candidate with the information from the distribution
Returns
override float  The float depending on the mask