openModeller  Version 1.4.0
Sampler.hh File Reference
Include dependency graph for Sampler.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SamplerImpl

Typedefs

typedef
ReferenceCountedPointer
< ModelImpl
Model
typedef
ReferenceCountedPointer
< SamplerImpl
SamplerPtr
typedef
ReferenceCountedPointer< const
SamplerImpl
ConstSamplerPtr

Functions

dllexp SamplerPtr createSampler (const EnvironmentPtr &env, const OccurrencesPtr &presence, const OccurrencesPtr &absence=OccurrencesPtr())
dllexp SamplerPtr createSampler (const ConstConfigurationPtr &config)
dllexp void splitSampler (const SamplerPtr &orig, SamplerPtr *train, SamplerPtr *test, double propTrain)
dllexp SamplerPtr cloneSampler (const SamplerPtr &orig)

Typedef Documentation

Definition at line 49 of file Sampler.hh.

Definition at line 41 of file Sampler.hh.

Definition at line 47 of file Sampler.hh.


Function Documentation

dllexp SamplerPtr cloneSampler ( const SamplerPtr orig)

Returns a fresh sampler cloned from the current object.

dllexp SamplerPtr createSampler ( const EnvironmentPtr env,
const OccurrencesPtr presence,
const OccurrencesPtr absence = OccurrencesPtr() 
)

Factory method that creates a Sampler based on Environment and Occurrences objects

dllexp SamplerPtr createSampler ( const ConstConfigurationPtr config)

Definition at line 59 of file Sampler.cpp.

dllexp void splitSampler ( const SamplerPtr orig,
SamplerPtr train,
SamplerPtr test,
double  propTrain 
)

Splits data points into to 2 new samplers

Parameters:
origOriginal sampler to split
trainPointer to train sampler to be returned
testPointer to test sampler to be returned
propTrainPercentage of points to go to train sampler