https://github.com/edisonslightbulbs/knn-cpp
C++ implementation of knn clustering algorithm
https://github.com/edisonslightbulbs/knn-cpp
Last synced: 4 months ago
JSON representation
C++ implementation of knn clustering algorithm
- Host: GitHub
- URL: https://github.com/edisonslightbulbs/knn-cpp
- Owner: edisonslightbulbs
- Created: 2021-01-05T10:25:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-25T12:18:58.000Z (almost 5 years ago)
- Last Synced: 2025-06-28T01:02:41.622Z (6 months ago)
- Language: CMake
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### KNN
Finding the euclidean distance that corresponds to the elbow of a graph, i.e., given graphed output: K =1 & point

##### Dependencies
###### CXX
* [glog](https://github.com/google/glog)
* [gflags](https://github.com/gflags/gflags)
###### Python3
* pip3 install matplotlib
* pip3 install pandas
* pip3 install seaborn
##### Caveat
for `MacOS` to link glog and gflags specify the lib directories as indicated
below:
```bash
export C_INCLUDE_PATH=/usr/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include
export LIBRARY_PATH=/usr/local/lib
```
##### Usage
from the project root directory
```bash
mkdir build && cd build || return
cmake ..
make
```
`CMakeLists.txt` is configured to auto-run the tartget post build (i.e., nothing else is required post build).