Mercurial > hg > tipic
view src/Normalise.h @ 22:528185bfb0e9
Wire up normalisation
author | Chris Cannam |
---|---|
date | Mon, 28 Sep 2015 14:54:07 +0100 |
parents | 51d6dd470646 |
children | 2c913b88b808 |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #ifndef NORMALISE_H #define NORMALISE_H #include <vector> class Normalise { public: static double norm(std::vector<double> v, int p = 2); // L^p norm static std::vector<double> normalise(std::vector<double> v, int p = 2, double threshold = 1e-6); }; #endif