openModeller
Version 1.4.0
|
#include <Occurrence.hh>
Stores a georeferenced occurrence locality (longitude, latitude and uncertanty) and its attributes (abundance and possibly others optional attributes).
Definition at line 53 of file Occurrence.hh.
OccurrenceImpl::OccurrenceImpl | ( | ) | [inline] |
Occurrence default constructor
Definition at line 61 of file Occurrence.hh.
OccurrenceImpl::OccurrenceImpl | ( | const std::string & | id, |
Coord | x, | ||
Coord | y, | ||
Scalar | error, | ||
Scalar | abundance, | ||
int | num_attributes = 0 , |
||
Scalar * | attributes = 0 , |
||
int | num_env = 0 , |
||
Scalar * | env = 0 |
||
) | [inline] |
Occurrence constructor with uncertanty.
id | Unique id. |
x | Longitude of the occurrence (decimal degrees). |
y | Latitude of the occurrence (decimal degrees). |
error | (x,y) uncertanty (meters). |
abundance | Abundance at point (0=absence, 1=single presence). |
num_attributes | Number of possible modelling attributes. - abundance must be first attribute |
attributes | Vector with possible modelling attributes. |
num_env | Number of environmental variables. |
env | Vector with unnormalized environmental data at the point. |
Definition at line 85 of file Occurrence.hh.
OccurrenceImpl::OccurrenceImpl | ( | const std::string & | id, |
Coord | x, | ||
Coord | y, | ||
Scalar | error, | ||
Scalar | abundance, | ||
std::vector< Scalar > | attributes, | ||
std::vector< Scalar > | env | ||
) | [inline] |
Occurrence constructor with uncertanty, using std::vector
id | Unique id. |
x | Longitude of the occurrence (decimal degrees). |
y | Latitude of the occurrence (decimal degrees). |
error | (x,y) uncertanty (meters). |
abundance | Abundance at point (0=absence, 1=single presence). |
attributes | Vector with possible modelling attributes. |
env | Vector with unnormalized environmental data at the point. |
Definition at line 112 of file Occurrence.hh.
OccurrenceImpl::OccurrenceImpl | ( | const std::string & | id, |
Coord | x, | ||
Coord | y, | ||
Scalar | error, | ||
Scalar | abundance, | ||
const Sample & | attributes, | ||
const Sample & | env | ||
) | [inline] |
Occurrence constructor with uncertanty.
id | Unique id. |
x | Longitude of the occurrence (decimal degrees). |
y | Latitude of the occurrence (decimal degrees). |
error | (x,y) uncertanty (meters). |
abundance | Abundance at point (0=absence, 1=single presence). |
attributes | Vector with possible modelling attributes. |
env | Vector with unnormalized environmental data at the point. |
Definition at line 137 of file Occurrence.hh.
OccurrenceImpl::OccurrenceImpl | ( | const std::string & | id, |
Coord | x, | ||
Coord | y, | ||
Scalar | abundance, | ||
int | num_attributes = 0 , |
||
Scalar * | attributes = 0 |
||
) | [inline] |
Occurrence constructor without uncertanty.
id | Unique id. |
x | Longitude of the occurrence (decimal degrees). |
y | Latitude of the occurrence (decimal degrees). |
error | (x,y) uncertanty (meters). |
abundance | Abundance at point (0=absence, 1=single presence). |
num_attributes | Number of possible modelling attributes. - abundance must be first attribute |
attributes | Vector with possible modelling attributes. |
Definition at line 163 of file Occurrence.hh.
Declaration of OccurrenceImpl class.
LICENSE INFORMATION
Copyright(c) 2003 by CRIA - Centro de Referencia em Informacao 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
Definition at line 40 of file Occurrence.cpp.
OccurrenceImpl::OccurrenceImpl | ( | const OccurrenceImpl & | rhs | ) | [inline] |
Definition at line 180 of file Occurrence.hh.
Scalar OccurrenceImpl::abundance | ( | ) | const [inline] |
Definition at line 198 of file Occurrence.hh.
Sample const& OccurrenceImpl::attributes | ( | ) | const [inline] |
Definition at line 200 of file Occurrence.hh.
void OccurrenceImpl::dump | ( | ) | const |
Definition at line 125 of file Occurrence.cpp.
References Sample::dump(), id_, Log::info(), Log::instance(), normEnv_, and unnormEnv_.
Sample const & OccurrenceImpl::environment | ( | ) | const |
Definition at line 64 of file Occurrence.cpp.
References normEnv_, Sample::size(), and unnormEnv_.
Scalar OccurrenceImpl::error | ( | ) | const [inline] |
Definition at line 197 of file Occurrence.hh.
bool OccurrenceImpl::hasEnvironment | ( | ) | const |
Definition at line 107 of file Occurrence.cpp.
References Sample::size(), and unnormEnv_.
std::string OccurrenceImpl::id | ( | ) | const [inline] |
Definition at line 194 of file Occurrence.hh.
Referenced by setId().
void OccurrenceImpl::normalize | ( | Normalizer * | normalizerPtr, |
size_t | categoricalThreshold = 0 |
||
) |
Definition at line 82 of file Occurrence.cpp.
References Normalizer::normalize(), normEnv_, Sample::setCategoricalThreshold(), and unnormEnv_.
OccurrenceImpl & OccurrenceImpl::operator= | ( | const OccurrenceImpl & | rhs | ) |
Definition at line 45 of file Occurrence.cpp.
References abundance_, attr_, error_, normEnv_, unnormEnv_, x_, and y_.
Sample const & OccurrenceImpl::originalEnvironment | ( | ) | const |
Definition at line 76 of file Occurrence.cpp.
References unnormEnv_.
void OccurrenceImpl::setAbundance | ( | Scalar | value | ) |
Definition at line 119 of file Occurrence.cpp.
References abundance_.
void OccurrenceImpl::setId | ( | const std::string & | id | ) |
void OccurrenceImpl::setNormalizedEnvironment | ( | const Sample & | s | ) |
Definition at line 95 of file Occurrence.cpp.
References normEnv_.
void OccurrenceImpl::setUnnormalizedEnvironment | ( | const Sample & | s | ) |
Definition at line 101 of file Occurrence.cpp.
References unnormEnv_.
Coord OccurrenceImpl::x | ( | ) | const [inline] |
Definition at line 195 of file Occurrence.hh.
Coord OccurrenceImpl::y | ( | ) | const [inline] |
Definition at line 196 of file Occurrence.hh.
friend class ReferenceCountedPointer< const OccurrenceImpl > [friend] |
Definition at line 56 of file Occurrence.hh.
friend class ReferenceCountedPointer< OccurrenceImpl > [friend] |
Definition at line 55 of file Occurrence.hh.
Scalar OccurrenceImpl::abundance_ [private] |
Definition at line 226 of file Occurrence.hh.
Referenced by operator=(), and setAbundance().
Sample OccurrenceImpl::attr_ [private] |
Definition at line 228 of file Occurrence.hh.
Referenced by operator=().
Scalar OccurrenceImpl::error_ [private] |
Definition at line 225 of file Occurrence.hh.
Referenced by operator=().
std::string OccurrenceImpl::id_ [private] |
Definition at line 222 of file Occurrence.hh.
Sample OccurrenceImpl::normEnv_ [private] |
Definition at line 230 of file Occurrence.hh.
Referenced by dump(), environment(), normalize(), operator=(), and setNormalizedEnvironment().
Sample OccurrenceImpl::unnormEnv_ [private] |
Definition at line 229 of file Occurrence.hh.
Referenced by dump(), environment(), hasEnvironment(), normalize(), operator=(), originalEnvironment(), and setUnnormalizedEnvironment().
Coord OccurrenceImpl::x_ [private] |
Definition at line 223 of file Occurrence.hh.
Referenced by operator=().
Coord OccurrenceImpl::y_ [private] |
Definition at line 224 of file Occurrence.hh.
Referenced by operator=().