Skip to content

Instantly share code, notes, and snippets.

# coding:utf8
import numpy as np
def calc_complexity(leaf, f, N, n_trees, dim_size, block, search_k=None, vector_complexity=None, benchmark_process=1):
'''
# 这些是参数
leaf: 数据大小
f: 维度
N: 需要找到的最邻近点