openModeller  Version 1.5.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.

Definition at line 1219 of file Sampler.cpp.

References createSampler().

Referenced by ConsensusAlgorithm::initialize().

Here is the call graph for this function:

dllexp SamplerPtr createSampler ( const EnvironmentPtr env,
const OccurrencesPtr presence,
const OccurrencesPtr absence = OccurrencesPtr() 
)
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

Definition at line 1171 of file Sampler.cpp.

References splitOccurrences().

Referenced by BestSubsets::iterate(), AbstractBestSubsets::iterate(), and PreJackknife::runImplementation().

Here is the call graph for this function: