diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-15 18:10:52 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-15 18:10:52 -0300 |
commit | 0b6df071d94ae8f7c9cdd3c96506a1420129e471 (patch) | |
tree | ea73a59457beba89ef6bab2b16d2d679d8dd1078 /mp.h |
Initial commit. ForceScheme seems bugged.
Diffstat (limited to 'mp.h')
-rw-r--r-- | mp.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#include <armadillo> + +namespace mp { + +static const double EPSILON = 1e-3; +double euclidean(const arma::rowvec &x1, const arma::rowvec &x2); +arma::mat dist(const arma::mat &X, double (*distCalc)(const arma::rowvec &, const arma::rowvec &) = euclidean); +arma::mat lamp(const arma::mat &X, const arma::uvec &sampleIndices, const arma::mat &Ys); +arma::mat forceScheme(const arma::mat &D, arma::mat &Y, size_t maxIter = 20, double tol = 1e-3, double fraction = 0.25); + +} // namespace mp |