⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 norm.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_AUX_NORM_HPP#define INDII_ML_AUX_NORM_HPP#include "vector.hpp"namespace indii {  namespace ml {    namespace aux {/** * Vector norm. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ */class Norm {public:  /**   * Evaluate the norm.   *   * @param x \f$\mathbf{x}\f$; a vector.   *   * @return \f$\|\mathbf{x}\|\f$; the norm of the vector.   */  virtual double operator()(const vector& x) const = 0;    /**   * Generate a random unit vector from a uniform distribution over the   * unit vectors in the normed vector space.   *   * @param N Dimensionality of the normed vector space.   *   * @return Random unit vector of length N.   */  virtual vector sample(const unsigned int N) const = 0;  };    }  }}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -