Foundations of residual-density analysis | Synapse