openModeller  Version 1.5.0
ScaleNormalizer Class Reference

#include <ScaleNormalizer.hh>

Inheritance diagram for ScaleNormalizer:
Inheritance graph
Collaboration diagram for ScaleNormalizer:
Collaboration graph

Public Member Functions

 ScaleNormalizer ()
 
 ScaleNormalizer (Scalar min, Scalar max, bool useLayerAsRef)
 
 ~ScaleNormalizer ()
 
void computeNormalization (const ReferenceCountedPointer< const SamplerImpl > &samplerPtr)
 
void normalize (Sample *samplePtr)
 
NormalizergetCopy ()
 
ConfigurationPtr getConfiguration () const
 
void setConfiguration (const ConstConfigurationPtr &)
 
- Public Member Functions inherited from Configurable
virtual ~Configurable ()
 

Private Attributes

Scalar _min
 
Scalar _max
 
bool _use_layer_as_ref
 
Sample _offsets
 
Sample _scales
 

Friends

class test_ScaleNormalizer
 

Detailed Description

Declaration of ScaleNormalizer class

Author
Renato De Giovanni
Id:
ScaleNormalizer.hh 3468 2007-08-02 18:11:26Z rdg

LICENSE INFORMATION

Copyright(c) 2007 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 32 of file ScaleNormalizer.hh.

Constructor & Destructor Documentation

ScaleNormalizer::ScaleNormalizer ( )

Definition at line 46 of file ScaleNormalizer.cpp.

Referenced by getCopy().

ScaleNormalizer::ScaleNormalizer ( Scalar  min,
Scalar  max,
bool  useLayerAsRef 
)

Definition at line 35 of file ScaleNormalizer.cpp.

ScaleNormalizer::~ScaleNormalizer ( )

Definition at line 57 of file ScaleNormalizer.cpp.

Member Function Documentation

void ScaleNormalizer::computeNormalization ( const ReferenceCountedPointer< const SamplerImpl > &  samplerPtr)
virtual

Implements Normalizer.

Definition at line 68 of file ScaleNormalizer.cpp.

References _max, _min, _offsets, _scales, _use_layer_as_ref, Log::debug(), Log::instance(), Sample::resize(), and Log::warn().

Here is the call graph for this function:

ConfigurationPtr ScaleNormalizer::getConfiguration ( ) const
virtual

Implements Configurable.

Definition at line 136 of file ScaleNormalizer.cpp.

References _max, _min, _offsets, _scales, and _use_layer_as_ref.

Normalizer * ScaleNormalizer::getCopy ( )
virtual

Implements Normalizer.

Definition at line 61 of file ScaleNormalizer.cpp.

References ScaleNormalizer().

Here is the call graph for this function:

void ScaleNormalizer::normalize ( Sample samplePtr)
virtual

Implements Normalizer.

Definition at line 125 of file ScaleNormalizer.cpp.

References _offsets, _scales, and Sample::size().

Here is the call graph for this function:

void ScaleNormalizer::setConfiguration ( const ConstConfigurationPtr config)
virtual

Implements Configurable.

Definition at line 157 of file ScaleNormalizer.cpp.

References _max, _min, _offsets, _scales, and _use_layer_as_ref.

Friends And Related Function Documentation

friend class test_ScaleNormalizer
friend

Definition at line 36 of file ScaleNormalizer.hh.

Member Data Documentation

Scalar ScaleNormalizer::_max
private

Definition at line 58 of file ScaleNormalizer.hh.

Referenced by computeNormalization(), getConfiguration(), and setConfiguration().

Scalar ScaleNormalizer::_min
private

Definition at line 57 of file ScaleNormalizer.hh.

Referenced by computeNormalization(), getConfiguration(), and setConfiguration().

Sample ScaleNormalizer::_offsets
private
Sample ScaleNormalizer::_scales
private
bool ScaleNormalizer::_use_layer_as_ref
private

Definition at line 59 of file ScaleNormalizer.hh.

Referenced by computeNormalization(), getConfiguration(), and setConfiguration().


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