leafSize property
int
leafSize
A number of points on a leaf node.
The bigger the number, the less effective search is. If leafSize is equal to the number of points, a regular KNN-search will take place.
Extremely small leafSize leads to ineffective memory usage since in this case a lot of kd-tree nodes will be allocated
Implementation
int get leafSize;