Пример #1
0
 def run_Kd_standard(self, param):
     logging.debug('building Kd_standard...')
     tree = Kd_standard(self.data, param)
     start = time.clock()
     tree.buildIndex()
     tree.adjustConsistency()
     end = time.clock()
     logging.info('[T] Kd-standard building time: %.2f' % (end - start))
     return self.query(tree)
Пример #2
0
 def run_Kd_standard(self, param):
     logging.debug('building Kd_standard...')
     tree = Kd_standard(self.data, param)
     start = time.clock()
     tree.buildIndex()
     tree.adjustConsistency()
     end = time.clock()
     logging.info('[T] Kd-standard building time: %.2f' % (end - start))
     return self.query(tree)
Пример #3
0
 def run_Kd_noisymean(self, param):
     logging.debug('building Kd_noisymean...')
     param.splitScheme = 'noisyMean'
     tree = Kd_standard(self.data, param)
     start = time.clock()
     tree.buildIndex()
     tree.adjustConsistency()
     end = time.clock()
     logging.info('[T] Kd-noisymean building time: %.2f' % (end - start))
     return self.query(tree)
Пример #4
0
 def run_Kd_noisymean(self, param):
     logging.debug('building Kd_noisymean...')
     param.splitScheme = 'noisyMean'
     tree = Kd_standard(self.data, param)
     start = time.clock()
     tree.buildIndex()
     tree.adjustConsistency()
     end = time.clock()
     logging.info('[T] Kd-noisymean building time: %.2f' % (end - start))
     return self.query(tree)