An open API service indexing awesome lists of open source software.

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

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`)