openModeller
Version 1.4.0
|
#include <ScaleNormalizer.hh>
Public Member Functions | |
ScaleNormalizer () | |
ScaleNormalizer (Scalar min, Scalar max, bool useLayerAsRef) | |
~ScaleNormalizer () | |
void | computeNormalization (const ReferenceCountedPointer< const SamplerImpl > &samplerPtr) |
void | normalize (Sample *samplePtr) |
Normalizer * | getCopy () |
ConfigurationPtr | getConfiguration () const |
void | setConfiguration (const ConstConfigurationPtr &) |
Private Attributes | |
Scalar | _min |
Scalar | _max |
bool | _use_layer_as_ref |
Sample | _offsets |
Sample | _scales |
Friends | |
class | test_ScaleNormalizer |
Declaration of ScaleNormalizer class
LICENSE INFORMATION
Copyright(c) 2007 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 32 of file ScaleNormalizer.hh.
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.
Definition at line 57 of file ScaleNormalizer.cpp.
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(), SamplerImpl::getEnvironment(), SamplerImpl::getMinMax(), Log::instance(), SamplerImpl::numIndependent(), Sample::resize(), and Log::warn().
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().
void ScaleNormalizer::normalize | ( | Sample * | samplePtr | ) | [virtual] |
Implements Normalizer.
Definition at line 125 of file ScaleNormalizer.cpp.
References _offsets, _scales, and Sample::size().
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.
friend class test_ScaleNormalizer [friend] |
Definition at line 36 of file ScaleNormalizer.hh.
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] |
Definition at line 60 of file ScaleNormalizer.hh.
Referenced by computeNormalization(), getConfiguration(), normalize(), and setConfiguration().
Sample ScaleNormalizer::_scales [private] |
Definition at line 61 of file ScaleNormalizer.hh.
Referenced by computeNormalization(), getConfiguration(), normalize(), and setConfiguration().
bool ScaleNormalizer::_use_layer_as_ref [private] |
Definition at line 59 of file ScaleNormalizer.hh.
Referenced by computeNormalization(), getConfiguration(), and setConfiguration().