4 ms·
> Note that there is no dataflow here: it's just an ordinary state machine. It sounds like you've converted data-flow to its state-space form. It's still data
by duped 3y ago
> Note that there is no dataflow here: it's just an ordinary state machine.
It sounds like you've converted data-flow to its state-space form. It's still data flow, just in a variant that might be easier to compute.
FWIW you probably need a pair of functions :
next state = F(input, current state)
output = G(input, current state)
Which in the signal-processing/control systems world is
s = Ax + Bs
y = Cx + Ds
Aka the "state space" formulation where A, B, C, and D are matrices, x is the input, s is the state, and y is the output. There are infinite ways to formulate the state space and infinite equivalent signal flow graphs that represent the same thing.