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

vpdfl_resample.cxx File Reference


Detailed Description

Select random sample of data with replacement.

Author:
Tim Cootes

Definition in file vpdfl_resample.cxx.

#include "vpdfl_resample.h"
#include <vnl/vnl_random.h>

Go to the source code of this file.

Functions

void vpdfl_resample (vcl_vector< vnl_vector< double > > &x, const vcl_vector< vnl_vector< double > > &d, int ns)
 Fill x with ns samples drawn at random from d.
void vpdfl_resample (vcl_vector< vnl_vector< double > > &x, const vnl_vector< double > *d, int n, int ns)
 Fill x with ns samples drawn at random from d[0.


Function Documentation

void vpdfl_resample vcl_vector< vnl_vector< double > > &  x,
const vnl_vector< double > *  d,
int  n,
int  ns
 

Fill x with ns samples drawn at random from d[0.

.n-1]. If ns not specified (or zero) then draw d.size() samples from d

Definition at line 23 of file vpdfl_resample.cxx.

void vpdfl_resample vcl_vector< vnl_vector< double > > &  x,
const vcl_vector< vnl_vector< double > > &  d,
int  ns
 

Fill x with ns samples drawn at random from d.

If n not specified (or zero) then draw d.size() samples from d

Definition at line 15 of file vpdfl_resample.cxx.


Generated on Thu Jan 10 14:43:32 2008 for contrib/mul/vpdfl by  doxygen 1.4.4