Almost2Norm Class Reference

Inheritance diagram for Almost2Norm:

Inheritance graph
[legend]

List of all members.


Detailed Description

Vector 2-norm without square root, i.e.

inner product.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date
Almost2Norm is not strictly a norm, as it does not satisfy the property of scalar multiplication. Combining with AlmostGaussianKernel, however, produces the same result as using PNorm<2> and GaussianKernel, but is much more efficient, as the square root in the norm and square in the exponent of the Gaussian are cancelled.

See also:
AlmostGaussianKernel

Definition at line 24 of file Almost2Norm.hpp.


Public Member Functions

virtual ~Almost2Norm ()
 Destructor.
virtual double operator() (const vector &x) const
 Evaluate the norm.
virtual vector sample (const unsigned int N) const
 Generate a random unit vector from a uniform distribution over the unit vectors in the normed vector space.

Constructor & Destructor Documentation

~Almost2Norm (  )  [virtual]

Destructor.

Definition at line 5 of file Almost2Norm.cpp.


Member Function Documentation

double operator() ( const vector x  )  const [inline, virtual]

Evaluate the norm.

Parameters:
x $\mathbf{x}$; a vector.
Returns:
$\|\mathbf{x}\|$; the norm of the vector.

Implements Norm.

Definition at line 60 of file Almost2Norm.hpp.

indii::ml::aux::vector sample ( const unsigned int  N  )  const [inline, virtual]

Generate a random unit vector from a uniform distribution over the unit vectors in the normed vector space.

Parameters:
N Dimensionality of the normed vector space.
Returns:
Random unit vector of length N.

Implements Norm.

Definition at line 65 of file Almost2Norm.hpp.


Generated on Wed Dec 17 15:11:57 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3