Let\'s say I have color \'FOO\', and it is stored in RGB format.I need to recolor \'FOO\' so it matches the closest color in a list of colors.Doing this on the fly, couldn\'t I view the RGB values fro
I am doing some data-mining on time series data. I need to calculate the distance or开发者_如何学运维 similarity between two series of equal dimensions. I was suggested to use Euclidean distance, Cos
i have a database table with a list of restaurants including their names, latitudes, and longitudes. i would like to select all the restaurants that are within a certain distance from my current locat
I\'m attempting to find the euclidean distance in meters between two points on an MKMapView using iPhone 开发者_StackOverflow社区OS 3.2. The problem is that I have these coordinates in terms of latitu
I have the lat/lon of 2 points on the earth. They are really close together, <10m. Let\'s assume the earth is flat. How do I calculate the distance between them in metres?
I have a toroidal-ish Euclidean-ish map.That is the surface is a flat, Euclidean rectangle, but when a point moves to the right boundary, it will appear at the left boundary (at the same y value), giv
First of all, I am new to R (I started yesterday). I have two groups of points, data and centers, the first one of size n and the second of size K (for instance, n = 3823 and K = 10), and for each i
I\'m working with a geographic point using lat/long and need to find other points in our database within a 5 mile radius o开发者_高级运维f that point. However, I can\'t seem to find out what the \"uni
One obvious method for computing the minimum distance from a point to a 3D triangle is to project the point onto the plane of the triangle, determine the barycentric coordinates of the resulting point
I have an undirected, unweighted graph, which doesn\'t have to be planar. I also have a subset of graph\'s nodes (true subset) and I need to find a node not belonging to the subset, with minimum sum o