PNorm Class Template Reference

Inheritance diagram for PNorm:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<unsigned int P>
class indii::ml::aux::PNorm< P >

Vector p-norm, $\|\cdot\|_p$.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date
Parameters:
P Degree of the p-norm.

Definition at line 19 of file PNorm.hpp.


Public Member Functions

virtual ~PNorm ()
 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.
template<>
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.
template<>
indii::ml::aux::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

~PNorm (  )  [inline, virtual]

Destructor.

Definition at line 59 of file PNorm.hpp.


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 64 of file PNorm.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 76 of file PNorm.hpp.

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.

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 70 of file PNorm.hpp.


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