Estimation of persistence diagrams via the three-gap theorem | Synapse