module YPetri::Simulation::TransitionRepresentation::Type_Ts
Attributes
gradient_closure[R]
Public Instance Methods
init()
click to toggle source
Initialization subroutine.
Calls superclass method
YPetri::Simulation::TransitionRepresentation::Type_s#init
# File lib/y_petri/simulation/transition_representation/Ts.rb, line 14 def init super @gradient_closure = to_gradient_closure end
to_gradient_closure()
click to toggle source
Builds a gradient closure.
# File lib/y_petri/simulation/transition_representation/Ts.rb, line 28 def to_gradient_closure build_closure end
∇()
click to toggle source
Gradient contribution of the transition to all places.
# File lib/y_petri/simulation/transition_representation/Ts.rb, line 21 def ∇ codomain >> gradient_closure.call end
Also aliased as: gradient_all