openModeller
Version 1.5.0
|
#include <DgGarpBestSubsets.hh>
Public Member Functions | |
DgGarpBestSubsets () | |
virtual | ~DgGarpBestSubsets () |
DgGarpBestSubsets () | |
virtual | ~DgGarpBestSubsets () |
Public Member Functions inherited from BestSubsets | |
BestSubsets (AlgMetadata *metadata) | |
virtual | ~BestSubsets () |
int | initialize () |
int | iterate () |
int | done () const |
float | getProgress () const |
Scalar | getValue (const Sample &x) const |
int | getConvergence (Scalar *const val) const |
void | printListOfRuns (string msg, AlgorithmRun **runs, int numOfRuns) |
Public Member Functions inherited from AlgorithmImpl | |
AlgorithmImpl (AlgMetadata const *metadata) | |
virtual | ~AlgorithmImpl () |
void | setParameters (int nparam, AlgParameter const *param) |
void | setParameters (const ParamSetType &) |
std::string const | getID () const |
AlgMetadata const * | getMetadata () const |
AlgorithmPtr | getFreshCopy () |
virtual int | supportsModelProjection () const |
Model | createModel (const SamplerPtr &samp, CallbackWrapper *func=0) |
void | setSampler (const SamplerPtr &samp) |
virtual int | finalize () |
Normalizer * | getNormalizer () const |
void | setNormalization (const SamplerPtr &samp) const |
void | setNormalization (const EnvironmentPtr &env) const |
virtual Model | getModel () const |
ConfigurationPtr | getConfiguration () const |
void | setConfiguration (const ConstConfigurationPtr &) |
Public Member Functions inherited from Configurable | |
virtual | ~Configurable () |
Public Member Functions inherited from BSAlgorithmFactory | |
virtual | ~BSAlgorithmFactory () |
Public Member Functions inherited from AbstractBestSubsets | |
AbstractBestSubsets (AlgMetadata const *) | |
virtual | ~AbstractBestSubsets ()=0 |
int | needNormalization () |
int | initialize () |
int | iterate () |
int | done () const |
float | getProgress () const |
Scalar | getValue (const Sample &x) const |
int | getConvergence (Scalar *const val) const |
Private Member Functions | |
AlgorithmImpl * | getBSAlgorithm () |
int | transferParametersToAlgorithm () |
Private Attributes | |
int | _max_gen |
int | _popsize |
int | _resamples |
double | _conv_limit |
Additional Inherited Members | |
Public Types inherited from AlgorithmImpl | |
typedef std::map< icstring, std::string > | ParamSetType |
Protected Member Functions inherited from BestSubsets | |
void | _getConfiguration (ConfigurationPtr &) const |
void | _setConfiguration (const ConstConfigurationPtr &) |
Protected Member Functions inherited from AlgorithmImpl | |
int | dimDomain () |
int | getParameter (std::string const &name, std::string *value) |
int | getParameter (std::string const &name, double *value) |
int | getParameter (std::string const &name, float *value) |
int | getParameter (std::string const &name, int *value) |
Protected Member Functions inherited from AbstractBestSubsets | |
virtual void | _getConfiguration (ConfigurationPtr &) const |
virtual void | _setConfiguration (const ConstConfigurationPtr &) |
Protected Attributes inherited from BestSubsets | |
int | _nparam |
AlgParameter * | _alg_params |
Protected Attributes inherited from AlgorithmImpl | |
SamplerPtr | _samp |
Normalizer * | _normalizerPtr |
ParamSetType | _param |
Protected Attributes inherited from AbstractBestSubsets | |
std::string | _subAlgorithm |
Implements GARP with Best Subset Procedure (Anderson et al. 2003).
It runs "n" Garp models, filter the best ones based on the procedure defined by Anderson et al. 2003 and sum them to obtain a probability map for the species distribution.
Current implementation uses multi-threading to run multiple Garp runs in parallel. Takes advantage of multi-processor servers and workstations.
Declaration of DG GARP with Best Subsets Procedure
LICENSE INFORMATION
Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:
http://www.gnu.org/copyleft/gpl.html Implements GARP with Best Subset Procedure (Anderson et al. 2003).
It runs <n> Garp models, filter the best ones based on the procedure defined by Anderson et al. 2003 and sum them to obtain a probability map for the species distribution.
Current implementation uses multi-threading to run multiple Garp runs in parallel. Takes advantage of multi-processor servers and workstations.
Definition at line 54 of file DgGarpBestSubsets.hh.
DgGarpBestSubsets::DgGarpBestSubsets | ( | ) |
Definition at line 315 of file DgGarpBestSubsets.cpp.
References AbstractBestSubsets::_subAlgorithm.
|
virtual |
Definition at line 322 of file DgGarpBestSubsets.cpp.
DgGarpBestSubsets::DgGarpBestSubsets | ( | ) |
|
virtual |
|
privatevirtual |
Implements BestSubsets.
Definition at line 334 of file dg_garp_bs.cpp.
|
privatevirtual |
Implements BestSubsets.
Definition at line 342 of file dg_garp_bs.cpp.
References BestSubsets::_alg_params, _conv_limit, _max_gen, BestSubsets::_nparam, _popsize, _resamples, Log::error(), AlgorithmImpl::getParameter(), Log::instance(), AlgParameter::setId(), and AlgParameter::setValue().
|
private |
Minimum value for convergence that triggers termination of execution
Definition at line 77 of file dg_garp_bs.hh.
Referenced by transferParametersToAlgorithm().
|
private |
Maximum number of iterations to be executed (if convergence is not reached)
Definition at line 68 of file dg_garp_bs.hh.
Referenced by transferParametersToAlgorithm().
|
private |
Number of points to be considered after resampling (with replacement)
Definition at line 71 of file dg_garp_bs.hh.
Referenced by transferParametersToAlgorithm().
|
private |
Number of points to be considered after resampling (with replacement)
Definition at line 74 of file dg_garp_bs.hh.
Referenced by transferParametersToAlgorithm().