When calculating rdf based on this documentation:
https://docs.mdanalysis.org/1.1.0/documentation_pages/analysis/rdf.html#module-MDAnalysis.analysis.rdf
I never get the rdf normalized to 1 at large distances. Also tried setting density=True/False, and that does not help.
Also, rdf.count does not sum up to the number of pairs.
I am unsure about what could be wrong here.
It seems that if I do
density*4*np.pi*np.square(rdf.bins)*rdf.rdf*np.diff(rdf.edges)
I get roughly the correct count in each bin, but according to the documentation, it seems that I already should have a value like that in the rdf structure.
Would be grateful for any advice.
Thank you!