pysal/pysal — pull request #342 by jlaura (2013-09-13 15:25:07+00:00)
Title: WED - Added simulated points

Analytics that utilize CSR to test a null hypothesis need to utilize pseudo random network constrained points. Added 'simulated_points()' to generate random points on the network in a uniform distribution. The logic is:

- Flatten the network into a line
- Randomly generate some x along the line
- Assign that x to the appropriate edge
- Compute the distance between one of the edge nodes and x
- Draw a circle with radius equal to distance from start node
- Compute the intersection of the line with the circle, checking sign for addition or subtraction

Blue = geoda net points
Red = internal points snapped to WED
Green = 300 randomly generated points
![image](https://f.cloud.github.com/assets/2105468/1139291/9a75e4ae-1c88-11e3-9023-bf9c6fd1392e.png)