Measuring the Location density in a Grasshopper Model

Dear Grasshopper Community,

I would like to know if there is a way to measure in Grasshopper the connectivity of patches by using the Location Density. This is a common measure in both spatial analysis and urban planning that calculates the number of opportunities accessible within a fixed cost limit (distance based).
It is defined as:

LD

I am using usually spider web but I am not sure there are the right tool for this calculation in it - or if another plugin could integrate this measure?
Thank you very much for your help!

Is that a $10 way of saying j+B_j+0 in some cases and j+B_j+1 in others?

1 Like

Sorry, I have corrected the formula!