|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
One rewrite rule: left < predecessor > right, if predicate, with weight. More...
#include <RewriteOperator.hpp>
Public Attributes | |
| std::vector< SymbolId > | left |
| SymbolId | predecessor {} |
| Predicate | predicate |
| std::vector< SymbolId > | right |
| Successor | successor |
| double | weight {} |
One rewrite rule: left < predecessor > right, if predicate, with weight.
left and right are matched against the symbols adjacent to the predecessor in word order, skipping Config::ignore. The first matching replacement wins, unless it has a positive weight: then one of the matching weighted replacements of that symbol is drawn in proportion to its weight, which is the stochastic L-system.
Definition at line 99 of file RewriteOperator.hpp.