MCPcopy Create free account
hub / github.com/comaps/comaps / formula

Function formula

tools/python/city_radius.py:44–46  ·  view source on GitHub ↗
(popul, base = 32, mult = 0.5)

Source from the content-addressed store, hash-verified

42 print "Cities count: %d" % len(cities)
43
44def formula(popul, base = 32, mult = 0.5):
45 #return math.exp(math.log(popul, base)) * mult
46 return math.pow(popul, 1 / base) * mult
47
48def avgDistance(approx, data):
49 dist = 0

Callers 2

findBestFunction · 0.85
process_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected