MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Network::RewriteOperator::Replacement Struct Reference

One rewrite rule: left < predecessor > right, if predicate, with weight. More...

#include <RewriteOperator.hpp>

Collaboration diagram for MayaFlux::Nodes::Network::RewriteOperator::Replacement:

Public Attributes

std::vector< SymbolId > left
SymbolId predecessor {}
Predicate predicate
std::vector< SymbolId > right
Successor successor
double weight {}

Detailed Description

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.


The documentation for this struct was generated from the following file: