openModeller
Version 1.5.0
|
#include <virtual_niche.hh>
Protected Member Functions | |
virtual void | _getConfiguration (ConfigurationPtr &) const |
virtual 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) |
Private Member Functions | |
void | dump () |
Scalar | pdf (Scalar avg, Scalar std, Scalar val) const |
Private Attributes | |
bool | _done |
OccurrencesPtr | _background |
More... | |
int | _num_background |
Sample | _minimum |
Sample | _maximum |
More... | |
Sample | _mean |
More... | |
Sample | _std |
More... | |
Sample | _scale |
More... | |
Scalar | _threshold |
More... | |
Scalar | _std_factor |
More... | |
Additional Inherited Members | |
Public Types inherited from AlgorithmImpl | |
typedef std::map< icstring, std::string > | ParamSetType |
Protected Attributes inherited from AlgorithmImpl | |
SamplerPtr | _samp |
Normalizer * | _normalizerPtr |
ParamSetType | _param |
Declaration of Virtual Niche Generator.
LICENSE INFORMATION
Copyright(c) 2012 by CRIA - Centro de Referência em Informação Ambiental
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 Virtual Niche Generator algorithm
Definition at line 39 of file virtual_niche.hh.
VirtualNicheGenerator::VirtualNicheGenerator | ( | ) |
Definition at line 191 of file virtual_niche.cpp.
VirtualNicheGenerator::~VirtualNicheGenerator | ( | ) |
Definition at line 207 of file virtual_niche.cpp.
|
protectedvirtual |
Reimplemented from AlgorithmImpl.
Definition at line 435 of file virtual_niche.cpp.
References _done, _maximum, _mean, _minimum, _scale, _std, and _threshold.
|
protectedvirtual |
Reimplemented from AlgorithmImpl.
Definition at line 452 of file virtual_niche.cpp.
References _done, _maximum, _mean, _minimum, _scale, _std, and _threshold.
|
virtual |
Return != 0 if algorithm finished.
Reimplemented from AlgorithmImpl.
Definition at line 392 of file virtual_niche.cpp.
References _done.
|
private |
Definition at line 474 of file virtual_niche.cpp.
References _maximum, _mean, _minimum, _scale, _std, Log::info(), Log::instance(), and Sample::size().
Referenced by iterate().
|
virtual |
Returns the algorithm's convergence value at the moment
Reimplemented from AlgorithmImpl.
Definition at line 425 of file virtual_niche.cpp.
The algorithm must return the occurrence probability at the given environment conditions.
x | Environmental conditions. |
Implements AlgorithmImpl.
Definition at line 402 of file virtual_niche.cpp.
References _mean, _scale, _std, _threshold, pdf(), and Sample::size().
|
virtual |
Initiate a new training.
Implements AlgorithmImpl.
Definition at line 215 of file virtual_niche.cpp.
References _background, _num_background, AlgorithmImpl::_samp, _std_factor, _threshold, BACKGROUND_ID, AlgorithmImpl::getParameter(), Log::info(), Log::instance(), STD_FACTOR_ID, THRESHOLD_ID, USE_ABSENCES_ID, and Log::warn().
|
virtual |
One step further on the training. Return 0 if something wrong happened.
Reimplemented from AlgorithmImpl.
Definition at line 315 of file virtual_niche.cpp.
References _background, _done, _maximum, _mean, _minimum, _num_background, AlgorithmImpl::_samp, _scale, _std, _std_factor, dump(), Log::info(), Log::instance(), pdf(), Sample::size(), and Sample::sqrt().
Definition at line 492 of file virtual_niche.cpp.
References PI.
Referenced by getValue(), and iterate().
|
private |
true if the algorithm is finished.
Definition at line 66 of file virtual_niche.hh.
Referenced by initialize(), and iterate().
|
private |
Definition at line 64 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), done(), and iterate().
|
private |
Mininum value for each variable.
Definition at line 70 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), dump(), and iterate().
|
private |
Maximum value for each variable.
Definition at line 71 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), dump(), getValue(), and iterate().
|
private |
Definition at line 69 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), dump(), and iterate().
|
private |
Definition at line 67 of file virtual_niche.hh.
Referenced by initialize(), and iterate().
|
private |
Standard deviation for the normal distribution.
Definition at line 73 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), dump(), getValue(), and iterate().
|
private |
Average for the normal distribution.
Definition at line 72 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), dump(), getValue(), and iterate().
|
private |
Threshold to get a binary niche.
Definition at line 75 of file virtual_niche.hh.
Referenced by initialize(), and iterate().
|
private |
Factors to multiply the PDF values.
Definition at line 74 of file virtual_niche.hh.
Referenced by _getConfiguration(), _setConfiguration(), getValue(), and initialize().