Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::SampleType Namespace Reference

Functions

Sample Random (size_t subsamples, size_t total_samples)
 Generates a Vector with ids of random samples withing the giving range. More...
 
template<class D >
Sample RandomDistinct (const Feature< D > &feats, size_t subsamples)
 Generates a vector with ids of random samples withing the giving range.
Repeated samples are inserted into the same position. More...
 
template<class D >
Sample Uniform (const Feature< D > &feats, size_t step=1)
 Generates a uniformly sampled Vector with ids. More...
 

Function Documentation

Sample Bial::SampleType::Random ( size_t  subsamples,
size_t  total_samples 
)

Generates a Vector with ids of random samples withing the giving range.

Date
2013/Jul/07
Parameters
subsamplesNumber of subsamples.
total_samplesTotal number of samples.
Returns
A Vector with ids of samples .
Warning
'subsamples' must be smaller than or equal to 'total_samples'.
template<class D >
Sample Bial::SampleType::RandomDistinct ( const Feature< D > &  feats,
size_t  subsamples 
)

Generates a vector with ids of random samples withing the giving range.
Repeated samples are inserted into the same position.

Date
2014/Nov/07
Parameters
featsfeature vector.
subsamplesNumber of subsamples.
Returns
A sample with ids of samples.
Warning
'subsamples' must be smaller than or equal to 'total_samples'.
template<class D >
Sample Bial::SampleType::Uniform ( const Feature< D > &  feats,
size_t  step = 1 
)

Generates a uniformly sampled Vector with ids.

Date
2013/Jul/07
Parameters
featsFeature vector.
stepNumber of elements between samples.
Returns
A Vector with ids.
Warning
none.