Exemple #1
0
def findMostDescriptivePoint(listLatLng,delta):
    count=(len(listLatLng)*delta)/100;
    distList,graph=gutility.compuPostCodeGraphs(listLatLng);
    mean=stat.meanFloat(distList);
    rList=[]
    index=gutility.removeNode(rList,graph,mean,count,0)
    return [listLatLng[i] for i in index];
Exemple #2
0
def computeRadiusDistance(meanPoint,listPoint):
    d=map(lambda x: getDistance(x,meanPoint),listPoint)
    valueMean=stat.meanFloat(d);
    valueSigma=stat.sigmaFloat(d)
        
    return valueMean +2*valueSigma;