https://github.com/vlaux/bhatta
Parallel Bhattacharyya Distance Measure algorithm
https://github.com/vlaux/bhatta
bhattacharyya-coefficient bhattacharyya-distance parallel
Last synced: 12 months ago
JSON representation
Parallel Bhattacharyya Distance Measure algorithm
- Host: GitHub
- URL: https://github.com/vlaux/bhatta
- Owner: vlaux
- Created: 2017-09-28T01:35:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T10:28:54.000Z (over 8 years ago)
- Last Synced: 2025-01-26T10:27:59.296Z (about 1 year ago)
- Topics: bhattacharyya-coefficient, bhattacharyya-distance, parallel
- Language: C++
- Homepage:
- Size: 388 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bhatta
### how to compile & run
```
g++ -std=c++11 -o bhatta bhatta.cpp
# parallel
g++ -std=c++11 -fopenmp -o bhatta bhatta.cpp [params]
./bhatta
# example
./bhatta dataset/TestMay03.txt
```
### available parameters:
use like `-D` (eg. `-DPARALLEL`)
`DEBUG`: outputs debug information
`N_THREADS`: define number of parallel threads (use with `PARALLEL`)
`PARALLEL`: runs program in parallel using OpenMP (do not forget to also use `-fopenmp`, so as to define `N_THREADS`)
`RESULTSFILE`: writes cores used (if parallel) and elapsed time to file (`.res`)