# simple-knn **Repository Path**: casually/simple-knn ## Basic Information - **Project Name**: simple-knn - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-08 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README simple-knn --- Description: It compute the **average distance to the nearest neighbors** for a set of 3D points. Install: ```bash pip install git+https://github.com/camenduru/simple-knn # or git clone https://github.com/camenduru/simple-knn && cd simple-knn pip install . ``` Usage: ```python from simple_knn._C import distCUDA2 # shape: [N, 3] demopc = torch.from_numpy(np.load("/path")).float().cuda().contiguous() # shape: [N] mean_distances = distCUDA2(demopc) ```