Skip to content

Instantly share code, notes, and snippets.

View ivashog's full-sized avatar
🇺🇦

Ivashkin Olexiy ivashog

🇺🇦
  • SSSCIP of Ukraine
  • Kyiv, Ukraine
View GitHub Profile
@ivashog
ivashog / gist:ba6391fa0e2fb7ad17be12d23c2351ba
Created November 2, 2017 11:29 — forked from drewda/gist:1299198
Jenks natural breaks classification
# code from http://danieljlewis.org/files/2010/06/Jenks.pdf
# described at http://danieljlewis.org/2010/06/07/jenks-natural-breaks-algorithm-in-python/
def getJenksBreaks( dataList, numClass ):
dataList.sort()
mat1 = []
for i in range(0,len(dataList)+1):
temp = []
for j in range(0,numClass+1):
temp.append(0)