eb08d1ea38ef34b757b7a5b0736ce92e2a4b0fb0,pykrige/core.py,,great_circle_distance,#Any#Any#Any#Any#,58

Before Change


    // lat/lon):
    d[d>1.0] = 1.0
    d[d<-1.0]=-1.0
    return 180.0/np.pi*np.arccos(d)

def euclid3_to_great_circle(euclid3_distance):
    
    Convert euclidean distance between points on a unit sphere to

After Change


    c1 = np.cos(lat1)
    s1 = np.sin(lat1)
    c2 = np.cos(lat2)
    s2 = np.sin(lat2)
    cd = np.cos(dlon)
    
    // This uses the arctan version of the great-circle distance function
    // from en.wikipedia.org/wiki/Great-circle_distance for increased
    // numerical stability.
    // Formula can be obtained from [2] combining eqns. (14)-(16)
    // for spherical geometry (f=0).
    
    return 180.0/np.pi*np.arctan2(
               np.sqrt((c2*np.sin(dlon))**2 + 
                       (c1*s2-s1*c2*cd)**2),
               s1*s2+c1*c2*cd)

def euclid3_to_great_circle(euclid3_distance):
    
    Convert euclidean distance between points on a unit sphere to
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: bsmurphy/PyKrige
Commit Name: eb08d1ea38ef34b757b7a5b0736ce92e2a4b0fb0
Time: 2017-02-03
Author: malte.ziebarth@fmvkb.de
File Name: pykrige/core.py
Class Name:
Method Name: great_circle_distance


Project Name: deepinsight/insightface
Commit Name: 7617d676ca2782dc321636ad7d1ceec2bf809aed
Time: 2018-02-07
Author: guojia@gmail.com
File Name: src/train_softmax.py
Class Name:
Method Name: get_symbol


Project Name: deepinsight/insightface
Commit Name: 3643e552bc2504d66271a74bed65810282143fab
Time: 2018-02-07
Author: guojia@gmail.com
File Name: src/train_softmax.py
Class Name:
Method Name: get_symbol