3 ms·
Adding relative weights to each rule would be a simple extension to the grammar. If only integer weights were permitted it could be a simple preprocessor.
by pacaro 7y ago
Adding relative weights to each rule would be a simple extension to the grammar. If only integer weights were permitted it could be a simple preprocessor.
- a-nikolaev 7y agoGrammar yes, but sampling reaction with appropriate rates makes the choice of the next reaction a little harder than arbitrary selection. The time to each possible event must be drawn from the exponential distribution (https://en.wikipedia.org/wiki/Exponential_distribution https://en.wikipedia.org/wiki/Exponential_distribution), and the event with the smallest waiting time fires next.