Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import sys
class DataPoint:
def __init__(self, lat, lon, ozone):
self.lat = lat
self.lon = lon
self.ozone = ozone
self.centroid = None
#this is big number, bigger than any distance ever
self.centroidD = sys.maxsize
def setCentroid(self, centroid, centroidD):
self.centroid = centroid
self.centroidD = centroidD
class Centroid(DataPoint):
def __init__(self, lat, lon, ozone):
super().__init__(lat, lon, ozone)
self.myPoints = []
self.changed = False
def addPoint(self, point):
self.myPoints.append(point)