readme.txt
来自「kde全称是kernel density estimation.基于核函数的概率」· 文本 代码 · 共 31 行
TXT
31 行
Very brief README on the BallTree and BallTreeDensity classes=============================================================Really, these should be called "KDTree" classes, since we use bounding boxesrather than spheres (balls), but I've never changed the name.A KD-Tree is a heirarchical data structure for storing point sets, whichcaches statistics of subsets of the points to speed up computations. Weare concerned with kernel density estimates, which have three components: locations (d-dimensional) bandwidths, assumed diagonal (d-dimensional) weights (1-dimensional)At each level of the tree, we cache statistics of a set S The weighted mean of all points in S The total weight of all points in S A bounding box containing all points of S, described by its center and half-width (in each dimension) "Bandwidth" info: The variance of a Gaussian approximation to the kernels in S The min. and max. BW of any kernel in S (if non-uniform BWs) All points in S are stored contiguously, and thus can be described by a lower & upper index in the leaf nodes of the tree Because they are now spatially contiguous, there is a permutation to restore their original ordering, which is stored in the structure. The left & right child nodes, typically each containing about half the points in S. For leaf nodes, "left" is a self-reference to the same node and "right" is NO_CHILD.The code itself uses branch-and-bound style computations to perform approximate and exact operations more efficiently.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?