API reference

ConstantMask Class

Extends Mask
A mask that always returns a constant value.

Fields

constant : float
Signature
float constant

Methods

Check ( c )
Not used on this mask.
Signature
override bool Check(Candidate c)
Parameters
c: Candidate  The candidate
Returns
override bool  true
SampleMask ( c )
Returns the constant value.
Signature
override float SampleMask(Candidate c)
Parameters
c: Candidate  The Candidate, ignored here
Returns
override float  The constant