Skip to content

Instantly share code, notes, and snippets.

View boblannon's full-sized avatar

Bob Lannon boblannon

View GitHub Profile
@boblannon
boblannon / jenks2.py
Created September 26, 2013 20:32 — forked from llimllib/jenks2.py
import json
from pprint import pprint as pp
def jenks_matrices_init(data, n_classes):
#fill the matrices with data+1 arrays of n_classes 0s
lower_class_limits = []
variance_combinations = []
for i in xrange(0, len(data)+1):
temp1 = []
temp2 = []