|
I am writing a program in C. I want to find a solution by minimizing expression
D1+D2+ +Dn
where Di's are distances calculated by distance formula between 2 points. The above expression is in x & y variables
Now I will differentiate this expression and...
Started by nowonder on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
At least one long distance, you've a good chance that the sum of squares has a different minimum are unrelated , then for each individual distance the square is minimal when the distance is and thus case isn't possible (AFAIK).
|
Modifying a Levenshtein distance function to calculate distance between two sets of x-y coordinates?
I've been trying to work on modifying a Levenshtein Distance function so that it can find the distance between two lines, or sets of x-y coordinates (in other words, how similar or different the lines are, not their geometric distance). I'm running into...
Answer Snippets (Read the full thread at stackoverflow):
Wouldn't it be more clever to use geometrics for calculating the distance between two lines of intersection, unless they are parallel (edit, thanks) , it's easy to calculate the smallest distance((x_1-x_2)/(y_1-y_2))) and subtract them.
|
|
Hi, now say someone is 10 miles away and you hear them transmitting, can you transmit back and that guy hears you.
BASIC QUESTION: Is the receiving distance different from the transmitting distance.
Started by devildogusmc4 on
, 11 posts
by 8 people.
Answer Snippets (Read the full thread at radioreference):
You did not mention what band you were talking about, and that will play into the answer: Is the receiving distance different....
BASIC QUESTION: Is the receiving distance different from the transmitting distance.
And that guy hears you.
|
Ask your Facebook Friends
|
Sounds like I got the concept but cant seems to get the implementation correct. eI have a cluster (an ArrayList) with multiple points, and I want to calculate avg distance. Ex: Points in cluster (A, B, C, D, E, F, ... , n), Distance A-B, Distance A-C,...
Answer Snippets (Read the full thread at stackoverflow):
You add all the distances += distance(bigCluster[i], bigCluster[j]); } } return totDistance / (bigCluster.length * (bigCluster.length - 1)) /....
For it to connect to), each time looping from curPoint to N, calculating each distance.
|
|
I have a unit vector, a distance and a coordinate and I would like to calculate the new coordinate given by adding the distance onto the coordinate in the given direction. How do I do this?
Started by Mike Broughton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
V = V unit * distance V unit = (1/2 sqrt(3), 1/2) distance = 6 ==> V = (3 sqrt(3), ....
You can find the coordinate bij multiplying all coordinates with the distance.
If with a unit vector, you mean a vector with distance 1.
|
|
Hi to All,
I want to calculate the distance between 2 points in Google Maps. I have the latitude & longitude of both points but want the distance between them.
Started by Girish on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There you can, given any two lat/lng points, you can easily calculate to good accuracy the distance between those() function on the following page:
http:....
Try this link: Area and Distance Calculator
A simple google search revealed this .
|
|
Is there a free plug-in for Adobe Reader to measure a distance on a PDF?
Is there another free reader out there that has this?
Started by Robert on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
A distance tool, a perimeter tool, and an area tool that will help you to measure distance, perimeter.
|
|
Distance_of_time_in_words is great, but sometimes it's not granular enough.
I need a function that will report exact distances of time in words. E.g., 7:50AM to 10:10AM should be a distance of "2 hours and 20 minutes", not "about 2 hours" or whatever ...
Started by Horace Loeb on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Def distance_of_time_in_hours_and_minutes(from_time, to_time) from_time = from_time.to_time if from_time.respond_to?(:to_time) to_time = to_time.to_time if to_time.respond_to?(:to_time) distance_in_hours = (((to_time - from_time).abs) / ....
|
|
I'm trying to make a "better" distance_of_time_in_words for rails and so far I have this: http://github.com/radar/dotiw .
However, at the moment it chokes on months + years, as shown by the specs. I'm at a complete loss! Help?
Code added by Pax so no-...
Started by Ryan Bigg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
"2 years, 4 months, 7 days" instead of "2 years" which Rails' distance_of_time_in_words gives.
Units (ie.
|
|
How do I calculate distance between two gps coordinates (lang,long)
Started by nicudotro on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
From that you can calculate the distance by finding out what the angle from one point to the other is not a perfect sphere it gets a little ....
I guess you want it along the curvature.
This algorithm is known as the Great Circle distance .
|