CluE
1.0
|
Uniform sampling. More...
#include <uniformsampling.h>
Public Member Functions | |
UniformSampling (std::vector< T * > const *data=NULL, unsigned int numberOfSamples=0) | |
virtual | ~UniformSampling () |
virtual DiscreteProxySolution < T > * | compute () |
Computes the sample set. More... | |
virtual void | setInput (std::vector< T * > const *) |
void | setNumberOfSamples (unsigned int) |
![]() | |
virtual | ~Algorithm () |
Static Public Member Functions | |
static UniformSampling< T > * | toUniformSampling (Algorithm *s) |
does a dynamic cast of the given Algorithm to UniformSampling<T> More... | |
Private Attributes | |
std::vector< T * > const * | input |
unsigned int | number_of_samples |
Uniform sampling.
Definition at line 21 of file uniformsampling.h.
CluE::UniformSampling< T >::UniformSampling | ( | std::vector< T * > const * | data = NULL , |
unsigned int | numberOfSamples = 0 |
||
) |
Definition at line 54 of file uniformsampling.h.
|
inlinevirtual |
Definition at line 26 of file uniformsampling.h.
|
virtual |
Computes the sample set.
InvalidRuntimeConfigurationException | [0] Input is NULL. |
InvalidRuntimeConfigurationException | [2] Empty input set. |
InvalidRuntimeConfigurationException | [3] Desired number of samples is 0. |
InvalidRuntimeConfigurationException | [4] Desired number of samples is larger than size of input. |
Implements CluE::Algorithm.
Definition at line 59 of file uniformsampling.h.
|
virtual |
Implements CluE::InputSetter< T >.
Definition at line 97 of file uniformsampling.h.
void CluE::UniformSampling< T >::setNumberOfSamples | ( | unsigned int | n | ) |
Definition at line 102 of file uniformsampling.h.
|
static |
does a dynamic cast of the given Algorithm to UniformSampling<T>
Definition at line 107 of file uniformsampling.h.
|
private |
Definition at line 50 of file uniformsampling.h.
|
private |
Definition at line 51 of file uniformsampling.h.