openModeller
Version 1.5.0
|
#include <openmodeller/om_defs.hh>
#include <openmodeller/Occurrences.hh>
#include <openmodeller/Occurrence.hh>
#include <openmodeller/Environment.hh>
#include <openmodeller/Configurable.hh>
#include <openmodeller/Normalizable.hh>
#include <openmodeller/Normalizer.hh>
#include <openmodeller/refcount.hh>
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 ReferenceCountedPointer<const SamplerImpl> ConstSamplerPtr |
Definition at line 49 of file Sampler.hh.
typedef ReferenceCountedPointer<ModelImpl> Model |
Definition at line 41 of file Sampler.hh.
typedef ReferenceCountedPointer<SamplerImpl> SamplerPtr |
Definition at line 47 of file Sampler.hh.
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().
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
Definition at line 52 of file Sampler.cpp.
Referenced by NicheMosaic::cleanOccurrences(), cloneSampler(), SvmAlgorithm::initialize(), NNAlgorithm::initialize(), NicheMosaic::initialize(), main(), PreJackknife::runImplementation(), OpenModeller::setAlgorithm(), and OpenModeller::setModelConfiguration().
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
orig | Original sampler to split |
train | Pointer to train sampler to be returned |
test | Pointer to test sampler to be returned |
propTrain | Percentage 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().