Friday, 15 March 2013

.net - Iterative process to return second lowest value -


I am quite new to vb.net and after many hours of searching no specific help can be found.

I have a table of data points with three columns, column 1 is "point id", column 2 is "x coordinate" and column 3 is "y parallel". I have to add a quarter column and then have to populate it with the second lowest value from the repetition process.

The recurring process is getting distance from that point to the second point so that the second lowest value will be the minimum value 0 (the distance of itself). Mathematics sqrt ((x2-x1) (x2-x1)) + ((y2-y1) (y2-y1)) for distance between point 1 and 2 point.

I have a recursive process within a recursive process to keep a single value again.

Any help would be very appreciated :)

Wade through rows in your table, then again for each row again through rows in your table. But when you reach the line, then your primary challan is on, you can skip that one and move on. Apart from this, since the distance pairs, you only need to repeat to get all the distance through half the rows in your table.

If you post some more information about this, it may be possible to help you with some code, but as it is now, you can not even say that What type of table do you have or how your program is set, it is difficult to be more specific.

No comments:

Post a Comment