def calcDistance(filename): dc = DistanceCalc() distEuclideanStep = dc.distanceStep(filename, "euclidean") distManhattanStep = dc.distanceStep(filename, "manhattan") distEuclideanTotal = dc.distanceTotal(filename, "euclidean") distManhattanTotal = dc.distanceTotal(filename, "manhattan") return [distEuclideanStep, distManhattanStep, distEuclideanTotal, distManhattanTotal]
def calcDistance(self): filename = self.base_path + self.traces_after_pp_path + self.individual + ".trace" dc = DistanceCalc() distEuclideanStep = dc.distanceStep(filename, "euclidean") distManhattanStep = dc.distanceStep(filename, "manhattan") distEuclideanTotal = dc.distanceTotal(filename, "euclidean") distManhattanTotal = dc.distanceTotal(filename, "manhattan") return [distEuclideanStep, distManhattanStep, distEuclideanTotal, distManhattanTotal]
def calcDistance(self, filename): dc = DistanceCalc() distEuclideanStep = dc.distanceStep(filename, "euclidean") distManhattanStep = dc.distanceStep(filename, "manhattan") distEuclideanTotal = dc.distanceTotal(filename, "euclidean") distManhattanTotal = dc.distanceTotal(filename, "manhattan") return [ distEuclideanStep, distManhattanStep, distEuclideanTotal, distManhattanTotal ]
def calcDistance(self): filename = self.base_path + self.traces_after_pp_path + self.individual + ".trace" dc = DistanceCalc() distEuclideanStep = dc.distanceStep(filename, "euclidean") distManhattanStep = dc.distanceStep(filename, "manhattan") distEuclideanTotal = dc.distanceTotal(filename, "euclidean") distManhattanTotal = dc.distanceTotal(filename, "manhattan") return [ distEuclideanStep, distManhattanStep, distEuclideanTotal, distManhattanTotal ]