-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,413 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"left": { | ||
"splitterpos": 559, | ||
"topwindowstate": "NORMAL", | ||
"panelheight": 959, | ||
"windowheight": 997 | ||
"splitterpos": 458, | ||
"topwindowstate": "MAXIMIZE", | ||
"panelheight": 789, | ||
"windowheight": 827 | ||
}, | ||
"right": { | ||
"splitterpos": 564, | ||
"splitterpos": 472, | ||
"topwindowstate": "NORMAL", | ||
"panelheight": 959, | ||
"windowheight": 997 | ||
"panelheight": 744, | ||
"windowheight": 782 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"source_window_id": "", | ||
"Source": "Source", | ||
"cursorPosition": "19,0", | ||
"scrollLine": "12" | ||
"scrollLine": "0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"files.associations": { | ||
"random": "cpp", | ||
"array": "cpp", | ||
"chrono": "cpp", | ||
"deque": "cpp", | ||
"format": "cpp", | ||
"forward_list": "cpp", | ||
"initializer_list": "cpp", | ||
"list": "cpp", | ||
"vector": "cpp", | ||
"xhash": "cpp", | ||
"xstring": "cpp", | ||
"xtree": "cpp", | ||
"xutility": "cpp", | ||
"algorithm": "cpp", | ||
"utility": "cpp", | ||
"atomic": "cpp", | ||
"bit": "cpp", | ||
"cctype": "cpp", | ||
"charconv": "cpp", | ||
"clocale": "cpp", | ||
"cmath": "cpp", | ||
"compare": "cpp", | ||
"concepts": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"exception": "cpp", | ||
"fstream": "cpp", | ||
"iomanip": "cpp", | ||
"ios": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"iterator": "cpp", | ||
"limits": "cpp", | ||
"locale": "cpp", | ||
"map": "cpp", | ||
"memory": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"optional": "cpp", | ||
"ostream": "cpp", | ||
"ratio": "cpp", | ||
"sstream": "cpp", | ||
"stack": "cpp", | ||
"stdexcept": "cpp", | ||
"stop_token": "cpp", | ||
"streambuf": "cpp", | ||
"string": "cpp", | ||
"system_error": "cpp", | ||
"thread": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"typeinfo": "cpp", | ||
"unordered_map": "cpp", | ||
"xfacet": "cpp", | ||
"xiosbase": "cpp", | ||
"xlocale": "cpp", | ||
"xlocbuf": "cpp", | ||
"xlocinfo": "cpp", | ||
"xlocmes": "cpp", | ||
"xlocmon": "cpp", | ||
"xlocnum": "cpp", | ||
"xloctime": "cpp", | ||
"xmemory": "cpp", | ||
"xstddef": "cpp", | ||
"xtr1common": "cpp", | ||
"functional": "cpp", | ||
"queue": "cpp", | ||
"*.rmd": "markdown", | ||
"unordered_set": "cpp", | ||
"execution": "cpp", | ||
"numeric": "cpp", | ||
"*.f7": "html", | ||
"future": "cpp", | ||
"condition_variable": "cpp", | ||
"coroutine": "cpp", | ||
"resumable": "cpp" | ||
}, | ||
"r.lsp.promptToInstall": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ Package: Rnanoflann | |
Type: Package | ||
Title: Extremely Fast Nearest Neighbor Search | ||
Version: 0.0.1 | ||
Date: 2023-10-26 | ||
Date: 2023-10-30 | ||
Authors@R: c( | ||
person("Manos Papadakis", email = "[email protected]", role = c("aut", "cre", "cph")), | ||
person("Jose Luis Blanco", email = "[email protected]" , role = c("aut","cph")), | ||
person("Michail Tsagris", role = c("ctb")) | ||
) | ||
Maintainer: Manos Papadakis <[email protected]> | ||
Copyright: nanoflann library is copyright Jose Luis Blanco. See file COPYRIGHT for details. | ||
Description: Finds the k nearest neighbours for every point in a given dataset using Jose Luis' 'nanoflann' library. There is support for exact searches, fixed radius searches with 'kd' trees and two distances, the 'Euclidean' and 'Manhattan'. For more information see <https://github.com/jlblancoc/nanoflann>. Also, the nanoflann library is exported and ready to be used via the linking to mechanism. | ||
Copyright: 'nanoflann' library is copyright Jose Luis Blanco. See file COPYRIGHT for details. | ||
Description: Finds the k nearest neighbours for every point in a given dataset using Jose Luis' 'nanoflann' library. There is support for exact searches, fixed radius searches with 'kd' trees and two distances, the 'Euclidean' and 'Manhattan'. For more information see <https://github.com/jlblancoc/nanoflann>. Also, the 'nanoflann' library is exported and ready to be used via the linking to mechanism. | ||
License: GPL (>= 3) | ||
Imports: Rcpp (>= 1.0.11) | ||
LinkingTo: Rcpp, RcppArmadillo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
|
||
#ifndef COEFF_H | ||
#define COEFF_H | ||
|
||
#include <RcppArmadillo.h> | ||
#include <string> | ||
|
||
using Rcpp::NumericMatrix; | ||
using std::string; | ||
using namespace arma; | ||
using namespace Rcpp; | ||
|
||
namespace Coeff | ||
{ | ||
inline double bhattacharyya(colvec x, colvec y){ | ||
return sum(sqrt(x % y)); | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
//[[Rcpp::depends(RcppArmadillo)]] | ||
#include <RcppArmadillo.h> | ||
using namespace arma; | ||
|
||
namespace Dist | ||
{ | ||
inline double manhattan(colvec x, colvec y) | ||
{ | ||
return sum(abs(x - y)); | ||
} | ||
|
||
inline double euclidean(colvec x, colvec y) | ||
{ | ||
return sum(square(x - y)); | ||
} | ||
} |
Oops, something went wrong.