Clustering is an important research in data mining Clustering in high dimensional space is especially difficult for the spatial distribution of the data, too much noise data points, and the phenomenon that the distance between the distances to the nearest and farthest neighbors of a data point goes to zero By analyzing limitations of the existing algorithms, definitions such as k-neighborhood set and k-radius are introduced A local density based k-neighborhood clustering algorithm k-PCLDHD is proposed to solve this problem To improve the algorithm's efficiency, the optimized algorithm k-LDCHD is proposed The definition of reference distance is applied to make a pretreatment to the data set, thus avoiding quite a lot of scans to the data set after using double reference points, and the effectiveness is improved greatly The theoretical analysis and experimental results indicate that the algorithm can solve the problem of clustering in high dimensional space It's effective and efficient