Mason's gain formula (MGF) is a method for finding the transfer function of a linear signal-flow graph (SFG). The formula was derived by Samuel Jefferson Mason,[1] for whom it is named. MGF is an alternate method to finding the transfer function algebraically by labeling each signal, writing down the equation for how that signal depends on other signals, and then solving the multiple equations for the output signal in terms of the input signal. MGF provides a step by step method to obtain the transfer function from a SFG. Often, MGF can be determined by inspection of the SFG. The method can easily handle SFGs with many variables and loops including loops with inner loops. MGF comes up often in the context of control systems, microwave circuits and digital filters because these are often represented by SFGs.
The gain formula is as follows:
G=
yout | |
yin |
=
| |||||||||
}{ |
\Delta }
\Delta=1-\sumLi+\sumLiLj-\sumLiLjLk+ … +(-1)m\sum … + …
where:
The transfer function from Vin to V2 is desired.
There is only one forward path:
G1=-y21RL
There are three loops:
L1=-Riny11
L2=-RLy22
L3=y21RLy12Rin
\Delta=1-(L1+L2+L3)+(L1L2)
\Delta1=1
G=
G1\Delta1 | |
\Delta |
=
-y21RL | |
1+Riny11+RLy22-y21RLy12Rin+Riny11RLy22 |
Digital filters are often diagramed as signal flow graphs.
There are two loops
L1=-a1Z-1
L2=-a2Z-2
\Delta=1-(L1+L2)
There are three forward paths
G0=b0
G1=b1Z-1
G2=b2Z-2
All the forward paths touch all the loops so
\Delta0=\Delta1=\Delta2=1
G=
G0\Delta0+G1\Delta1+G2\Delta2 | |
\Delta |
G=
b0+b1Z-1+b2Z-2 | |
1+a1Z-1+a2Z-2 |
The signal flow graph has six loops. They are:
L0=-
\beta | |
sM |
L1=
-(RM+RS) | |
sLM |
L2=
-GMKM | |
s2LMM |
L3=
-KCRS | |
sLM |
L4=
-KVKCKMGT | |
s2LMM |
L5=
-KPKVKCKM | |
s3LMM |
\Delta=1-(L0+L1+L2+L3+L4+L5)+(L0L1+L0L3)
There is one forward path:
g0=
KPKVKCKM | |
s3LMM |
The forward path touches all the loops therefore the co-factor
\Delta0=1
And the gain from input to output is
\thetaL | |
\thetaC |
=
g0\Delta0 | |
\Delta |
Mason's rule can be stated in a simple matrix form. Assume
T
tnm=\left[T\right]nm
unm=\left[U\right]nm
U=\left(I-T\right)-1
and
I
Mason's Rule is also particularly useful for deriving the z-domain transfer function of discrete networks that have inner feedback loops embedded within outer feedback loops (nested loops). If the discrete network can be drawn as a signal flow graph, then the application of Mason's Rule will give that network's z-domain H(z) transfer function.
Mason's Rule can grow factorially, because the enumeration of paths in a directed graph grows dramatically. To see this consider the complete directed graph on
n
yin
yout
(n-2)!
Yet Mason's rule characterizes the transfer functions of interconnected systems in a way which is simultaneously algebraic and combinatorial, allowing for general statements and other computations in algebraic systems theory. While numerous inverses occur during Gaussian elimination, Mason's rule naturally collects these into a single quasi-inverse. General form is
p | |
1-q |
,
q
R(1+\langle
-1 | |
L | |
i\rangle) |