view src/Normalise.h @ 33:e5d5a7098a32

Swap a and b buffers (naming only)
author Chris Cannam
date Wed, 30 Sep 2015 15:08:08 +0100
parents 2c913b88b808
children
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); // L^p norm

    static std::vector<double> normalise(std::vector<double> v,
					 int p,
					 double threshold = 1e-6);
};

#endif