# Proximity of Points to a PolyLine

BEMath shared this question 7 years ago

My students are exploring geometry by aligning and scheduling bus lines to serve our college. I am curious if there is an easy way to determine the average proximity of a set of points from a PolyLine. How do I determine how near the PolyLine is to the set of points?

(This may be more of a statistics operation, since the PolyLine could be considered as a regression line and the proximity approximated by r-squared.)

Any other ways of looking at this situation would be very much appreciated! Thanks!

1

My students are exploring geometry by aligning and scheduling bus lines to serve our college. I am curious if there is an easy way to determine the average proximity of a set of points from a PolyLine. How do I determine how near the PolyLine is to the set of points?

(This may be more of a statistics operation, since the PolyLine could be considered as a regression line and the proximity approximated by r-squared.)

Any other ways of looking at this situation would be very much appreciated! Thanks!

Hi,

the command

Distance[point, Objekt]

(and the sequence command) allow to create a set of distances.

Regards Abakus

1

Hi,

abakus's way.

https://ggbm.at/567685

1

Thanks to Abakus for the essential code and to M. Clément for the code showing how to iterate the distance for several points.

With your help, this will be an interesting project for my geometry students and hopefully will get them thinking about the efficiency of public transport.

1

My students are exploring geometry by aligning and scheduling bus lines to serve our college. I am curious if there is an easy way to determine the average proximity of a set of points from a PolyLine. How do I determine how near the PolyLine is to the set of points?

(This may be more of a statistics operation, since the PolyLine could be considered as a regression line and the proximity approximated by r-squared.)

Any other ways of looking at this situation would be very much appreciated! Thanks!

Hi,

the command

Distance[point, Objekt]

(and the sequence command) allow to create a set of distances.

Regards Abakus

PS: Using

Circle[point,Distance[point, Objekt]]

you will be able to visualize the position of the points on the polyline, which have the minimum distance from the external points.

1

hello

PS: Using
Circle[point,Distance[point, Objekt]]

you will be able to visualize the position of the points on the polyline, which have the minimum distance from the external points.

try ClosestPoint[ <Path>, <Point> ] also (polyline is a path)

saludos

1

Hi,

to minimize average proximity...

https://ggbm.at/567699