Module: YPetri::Core::Timed::Euler

Defined in:
lib/y_petri/core/timed/euler.rb

Overview

Euler method. Assumes that only T transitions are in the net.

Instance Method Summary collapse

Instance Method Details

#delta(Δt) ⇒ Object Also known as: Δ

Computes Δ for the period of Δt. Since this method assumes that only timed transitions are in the net, delta state is computed simply bu multiplying the gradient by Δt.



10
11
12
# File 'lib/y_petri/core/timed/euler.rb', line 10

def delta Δt
  gradient * Δt
end