You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Dan Rosher (Jira)" <ji...@apache.org> on 2022/07/13 14:09:00 UTC

[jira] [Created] (SOLR-16292) NVector for alternative great-circle distance calculations

Dan Rosher created SOLR-16292:
---------------------------------

             Summary: NVector for alternative great-circle distance calculations
                 Key: SOLR-16292
                 URL: https://issues.apache.org/jira/browse/SOLR-16292
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: search, spatial
    Affects Versions: 9.0
            Reporter: Dan Rosher


[N-Vector|https://en.wikipedia.org/wiki/N-vector#Example:_Great_circle_distance] is a three-parameter representation that can be used to calculate the great-circle distance (assuming a spherical Earth).

This implementation makes use of fast implementation of acos I wrote, that approximates acos with a maclaurin series expansion.

For small distances it compares well with Math.acos, and is a faster way of calculating the great-circle distance than Haversine.

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org