public class MathRewriteAlterer<G extends TreeGene<Op<Double>,G>,C extends Comparable<? super C>> extends TreeRewriteAlterer<Op<Double>,G,C>
TreeRewriteAlterer
_probability
DEFAULT_ALTER_PROBABILITY
Constructor and Description |
---|
MathRewriteAlterer()
Create a new alterer with the default math rewriter
MathExpr.REWRITER and given rewrite. |
MathRewriteAlterer(double probability)
Create a new alterer with the default math rewriter
MathExpr.REWRITER and given rewrite. |
MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter)
Create a new alterer with the given
rewriter . |
MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter,
double probability)
Create a new alterer with the given
rewriter and given rewrite
limit . |
MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter,
int limit,
double probability)
Create a new alterer with the given
rewriter and given rewrite
limit . |
mutate
mutate
getProbability
public MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter, int limit, double probability)
rewriter
and given rewrite
limit
.rewriter
- the tree rewriterlimit
- the rewriting limitprobability
- the altering probabilityNullPointerException
- if the rewriter
is null
public MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter, double probability)
rewriter
and given rewrite
limit
.rewriter
- the tree rewriterprobability
- the altering probabilityNullPointerException
- if the rewriter
is null
public MathRewriteAlterer(TreeRewriter<Op<Double>> rewriter)
rewriter
.rewriter
- the tree rewriterNullPointerException
- if the rewriter
is null
public MathRewriteAlterer(double probability)
MathExpr.REWRITER
and given rewrite.probability
- the altering probabilitypublic MathRewriteAlterer()
MathExpr.REWRITER
and given rewrite.© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)