openModeller  Version 1.4.0
OccurrenceImpl Class Reference

#include <Occurrence.hh>

Inheritance diagram for OccurrenceImpl:
Collaboration diagram for OccurrenceImpl:

List of all members.

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)
OccurrenceImploperator= (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 >

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
idUnique id.
xLongitude of the occurrence (decimal degrees).
yLatitude of the occurrence (decimal degrees).
error(x,y) uncertanty (meters).
abundanceAbundance at point (0=absence, 1=single presence).
num_attributesNumber of possible modelling attributes. - abundance must be first attribute
attributesVector with possible modelling attributes.
num_envNumber of environmental variables.
envVector 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

Parameters:
idUnique id.
xLongitude of the occurrence (decimal degrees).
yLatitude of the occurrence (decimal degrees).
error(x,y) uncertanty (meters).
abundanceAbundance at point (0=absence, 1=single presence).
attributesVector with possible modelling attributes.
envVector 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.

Parameters:
idUnique id.
xLongitude of the occurrence (decimal degrees).
yLatitude of the occurrence (decimal degrees).
error(x,y) uncertanty (meters).
abundanceAbundance at point (0=absence, 1=single presence).
attributesVector with possible modelling attributes.
envVector 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.

Parameters:
idUnique id.
xLongitude of the occurrence (decimal degrees).
yLatitude of the occurrence (decimal degrees).
error(x,y) uncertanty (meters).
abundanceAbundance at point (0=absence, 1=single presence).
num_attributesNumber of possible modelling attributes. - abundance must be first attribute
attributesVector with possible modelling attributes.

Definition at line 163 of file Occurrence.hh.

Declaration of OccurrenceImpl class.

Author:
Mauro E S Muņoz (mauro@cria.org.br)
Date:
2003-25-02
Id:
Occurrence.cpp 5711 2013-04-02 14:57:13Z rdg

LICENSE INFORMATION

Copyright(c) 2003 by CRIA - Centro de Referencia em Informacao Ambiental

http://www.cria.org.br

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.

Definition at line 180 of file Occurrence.hh.


Member Function Documentation

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_.

Here is the call graph for this function:

Definition at line 64 of file Occurrence.cpp.

References normEnv_, Sample::size(), and unnormEnv_.

Here is the call graph for this function:

Scalar OccurrenceImpl::error ( ) const [inline]

Definition at line 197 of file Occurrence.hh.

Definition at line 107 of file Occurrence.cpp.

References Sample::size(), and unnormEnv_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

OccurrenceImpl & OccurrenceImpl::operator= ( const OccurrenceImpl rhs)

Definition at line 45 of file Occurrence.cpp.

References abundance_, attr_, error_, normEnv_, unnormEnv_, x_, and y_.

Definition at line 76 of file Occurrence.cpp.

References unnormEnv_.

Definition at line 119 of file Occurrence.cpp.

References abundance_.

void OccurrenceImpl::setId ( const std::string &  id)

Definition at line 113 of file Occurrence.cpp.

References id(), and id_.

Here is the call graph for this function:

Definition at line 95 of file Occurrence.cpp.

References normEnv_.

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.


Friends And Related Function Documentation

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.


Member Data Documentation

Definition at line 226 of file Occurrence.hh.

Referenced by operator=(), and setAbundance().

Definition at line 228 of file Occurrence.hh.

Referenced by operator=().

Definition at line 225 of file Occurrence.hh.

Referenced by operator=().

std::string OccurrenceImpl::id_ [private]

Definition at line 222 of file Occurrence.hh.

Referenced by dump(), and setId().

Definition at line 223 of file Occurrence.hh.

Referenced by operator=().

Definition at line 224 of file Occurrence.hh.

Referenced by operator=().


The documentation for this class was generated from the following files: