Lightweight Neural Network++ documentation

Visit the lwnnplus home page, download the technical report in english or italian.

Main Page | Class Hierarchy | Class List | File List | Class Members

shuffle Class Reference

This class implements a vector of size n which contains numbers form 0 to n-1 in random order. More...

#include <shuffle.h>

List of all members.

Public Member Functions

 shuffle (int n)
 Constructs a shuffle of length n.
void redo ()
 Redo the shuffle.
int operator[] (int x) const
 operator[] read-only
int size () const
 Retrieve the size of the shuffle.


Detailed Description

This class implements a vector of size n which contains numbers form 0 to n-1 in random order.


Constructor & Destructor Documentation

shuffle::shuffle int  n  ) 
 

Constructs a shuffle of length n.

Parameters:
n length of shuffle


Member Function Documentation

int shuffle::operator[] int  x  )  const [inline]
 

operator[] read-only

Parameters:
x index

int shuffle::size  )  const [inline]
 

Retrieve the size of the shuffle.

Returns:
size


The documentation for this class was generated from the following file:
Generated on Tue Oct 12 00:32:12 2004 for Lightweight Neural Network ++ by  doxygen 1.3.9