SchemaQ

Undocumented in source.

Constructors

this
this(MinstdRand0 rnd)
Undocumented in source.
this
this(typeof(state) st)
Undocumented in source.

Members

Aliases

StatusData
alias StatusData = Mutation.Kind[] delegate(SchemaStatus)
Undocumented in source.

Functions

addIfNew
void addIfNew(Path p)

Add a state for the p if it doesn't exist.

dup
SchemaQ dup()

Deep copy.

isZero
bool isZero(Path p, Mutation.Kind k)
scatterTick
void scatterTick()

To allow those with zero probability to self heal give them a random +1 now and then.

update
void update(Path path, StatusData data)

Update the state for all mutants.

use
bool use(Path p, Mutation.Kind k, double threshold)

Roll the dice to see if the mutant should be used.

Static functions

make
auto make()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

LearnRate
auto LearnRate;
Undocumented in source.
MaxState
auto MaxState;
Undocumented in source.
MinState
auto MinState;
Undocumented in source.

Variables

pathCache
Checksum64[Path] pathCache;
Undocumented in source.
rnd0
MinstdRand0 rnd0;
Undocumented in source.
state
int[Mutation.Kind][Checksum64] state;
Undocumented in source.

Meta