openModeller
Version 1.5.0
|
#include <Occurrence.hh>
Public Member Functions | |
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) | |
OccurrenceImpl (const std::string &id, Coord x, Coord y, Scalar error, Scalar abundance, std::vector< Scalar > attributes, std::vector< Scalar > env) | |
OccurrenceImpl (const std::string &id, Coord x, Coord y, Scalar error, Scalar abundance, const Sample &attributes, const Sample &env) | |
OccurrenceImpl (const std::string &id, Coord x, Coord y, Scalar abundance, int num_attributes=0, Scalar *attributes=0) | |
~OccurrenceImpl () | |
OccurrenceImpl (const OccurrenceImpl &rhs) | |
OccurrenceImpl & | operator= (const OccurrenceImpl &) |
std::string | id () const |
Coord | x () const |
Coord | y () const |
Scalar | error () const |
Scalar | abundance () const |
Sample const & | attributes () const |
Sample const & | environment () const |
Sample const & | originalEnvironment () const |
void | normalize (Normalizer *normalizerPtr, size_t categoricalThreshold=0) |
void | setNormalizedEnvironment (const Sample &s) |
void | setUnnormalizedEnvironment (const Sample &s) |
bool | hasEnvironment () const |
void | setId (const std::string &id) |
void | setAbundance (Scalar value) |
void | dump () const |
Private Attributes | |
std::string | id_ |
Coord | x_ |
Coord | y_ |
Scalar | error_ |
Scalar | abundance_ |
Sample | attr_ |
Sample | unnormEnv_ |
Sample | normEnv_ |
Friends | |
class | ReferenceCountedPointer< OccurrenceImpl > |
class | ReferenceCountedPointer< const OccurrenceImpl > |
Additional Inherited Members | |
Private Member Functions inherited from ReferenceCountedObject | |
ReferenceCountedObject () | |
virtual | ~ReferenceCountedObject ()=0 |
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.
|
inline |
Occurrence default constructor
Definition at line 61 of file Occurrence.hh.
|
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.
|
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.
|
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.
|
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.
OccurrenceImpl::~OccurrenceImpl | ( | ) |
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.
|
inline |
Definition at line 180 of file Occurrence.hh.
|
inline |
Definition at line 198 of file Occurrence.hh.
|
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_.
|
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_.
|
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_.
|
inline |
Definition at line 195 of file Occurrence.hh.
|
inline |
Definition at line 196 of file Occurrence.hh.
|
friend |
Definition at line 56 of file Occurrence.hh.
|
friend |
Definition at line 55 of file Occurrence.hh.
|
private |
Definition at line 226 of file Occurrence.hh.
Referenced by operator=(), and setAbundance().
|
private |
Definition at line 228 of file Occurrence.hh.
Referenced by operator=().
|
private |
Definition at line 225 of file Occurrence.hh.
Referenced by operator=().
|
private |
Definition at line 222 of file Occurrence.hh.
|
private |
Definition at line 230 of file Occurrence.hh.
Referenced by dump(), environment(), normalize(), operator=(), and setNormalizedEnvironment().
|
private |
Definition at line 229 of file Occurrence.hh.
Referenced by dump(), environment(), hasEnvironment(), normalize(), operator=(), originalEnvironment(), and setUnnormalizedEnvironment().
|
private |
Definition at line 223 of file Occurrence.hh.
Referenced by operator=().
|
private |
Definition at line 224 of file Occurrence.hh.
Referenced by operator=().