Interferogram averaging for DEM generation

so, it is easier to sum and divide the small baseline (ab-bc-cd) pairs? since the temp baseline is almost constant

found this image

can anyone suggest the gis steps for it? i believe the Uncertainty,E = Total (ref point - targets)/Ntargets?