rfunction Python implementation of the R function. It is used to create all plots presented in this paper: http://arxiv.org/abs/1304.6967