I am looking for Ripley's k function implementation in Python. But so far haven't been able to find any spatial modules implementing this in scipy or elsewhere.
I have created Voronoi tessellation of a fibre composite and need to perform analysis using Ripley's K and pair distribution functions compared to a Poisson distribution.
Cannot upload images-not enough rep.
Solved my problem, this is for others looking to do same analysis.
Definitely recommend using R for spatial analysis. A transfer from python is simple because all you need is coordinates of your point pattern.
Write a csv of x,y and z coordinates of your points using python
R has good functionality of reading csv using command read.csv("filename"). Make sure the directory is set properly using setwd command.
Cheers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With