openModeller
Version 1.5.0
|
#include <PreChiSquare.hh>
Public Member Functions | |
PreChiSquare () | |
~PreChiSquare () | |
string | getDescription () const |
bool | checkParameters (const PreParameters ¶meters) const |
bool | runImplementation () |
void | getAcceptedParameters (stringMap &info) |
void | getLayersetResultSpec (stringMap &info) |
void | getLayerResultSpec (stringMap &info) |
bool | init () |
size_t | getNpoints () |
void | setNpoints () |
size_t | getNlayers () |
void | setNlayers (SamplerPtr samplerPtr) |
size_t | getNclass () |
void | setNclass () |
void | setMinimum () |
Sample | getMinimum () |
void | setDelta () |
Sample | getDelta () |
void | setMeasured (size_t layer1, size_t layer2) |
void | setExpected () |
void | setChicell () |
void | setStatistic (size_t layer1, size_t layer2) |
void | run () |
void | setMeasuredZero () |
Public Member Functions inherited from PreAlgorithm | |
virtual | ~PreAlgorithm () |
bool | apply () |
bool | reset (const PreParameters ¶ms) |
void | resetState (PreParameters ¶ms) |
const PreParameters & | getParameters () const |
void | getLayerResult (const string layer_id, PreParameters &result) |
Private Attributes | |
size_t | num_points |
size_t | num_layers |
size_t | nclass |
Sample | minimum |
Sample | delta |
OccurrencesPtr | my_presences |
Scalar | measured [classLimit][classLimit] |
Scalar | expected [classLimit][classLimit] |
Scalar | chicell [classLimit][classLimit] |
std::vector< size_t > | statistic1 |
std::vector< size_t > | statistic2 |
Additional Inherited Members | |
Public Types inherited from PreAlgorithm | |
typedef std::map< string, string > | stringMap |
Static Public Member Functions inherited from PreAlgorithm | |
static PreAlgorithm * | DefaultObject (const PreParameters ¶ms) |
Protected Member Functions inherited from PreAlgorithm | |
PreAlgorithm () | |
bool | checkInternalParameters () const |
Protected Attributes inherited from PreAlgorithm | |
PreParameters | params_ |
std::map< string, PreParameters > | result_by_layer_ |
Definition at line 47 of file PreChiSquare.hh.
PreChiSquare::PreChiSquare | ( | ) |
Declaration of class PreChiSquare
LICENSE INFORMATION
Copyright(c) 2008 by INPE - Instituto Nacional de Pesquisas Espaciais
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 35 of file PreChiSquare.cpp.
PreChiSquare::~PreChiSquare | ( | ) |
Definition at line 39 of file PreChiSquare.cpp.
|
virtual |
Checks if the supplied parameters fits the requirements of each PRE algorithm implementation.
note: Error log messages must be generated. No exceptions generated.
parameters: The parameters to be checked. return true if the parameters are OK. false if not.
Implements PreAlgorithm.
Definition at line 44 of file PreChiSquare.cpp.
References Log::error(), Log::instance(), and PreMultiContainer< PreMultiContainerKeyT >::retrieve().
|
virtual |
Implements PreAlgorithm.
Definition at line 107 of file PreChiSquare.cpp.
Sample PreChiSquare::getDelta | ( | ) |
Definition at line 237 of file PreChiSquare.cpp.
References delta.
|
inlinevirtual |
Return a description about the algorithm.
Implements PreAlgorithm.
Definition at line 68 of file PreChiSquare.hh.
|
virtual |
Implements PreAlgorithm.
Definition at line 119 of file PreChiSquare.cpp.
|
virtual |
Implements PreAlgorithm.
Definition at line 113 of file PreChiSquare.cpp.
Sample PreChiSquare::getMinimum | ( | ) |
Definition at line 211 of file PreChiSquare.cpp.
References minimum.
size_t PreChiSquare::getNclass | ( | ) |
Definition at line 182 of file PreChiSquare.cpp.
References nclass.
size_t PreChiSquare::getNlayers | ( | ) |
Definition at line 161 of file PreChiSquare.cpp.
References num_layers.
size_t PreChiSquare::getNpoints | ( | ) |
Definition at line 149 of file PreChiSquare.cpp.
References num_points.
bool PreChiSquare::init | ( | ) |
Definition at line 125 of file PreChiSquare.cpp.
References classLimit, Log::error(), Log::instance(), my_presences, nclass, PreAlgorithm::params_, PreMultiContainer< PreMultiContainerKeyT >::retrieve(), setDelta(), setMinimum(), setNclass(), setNlayers(), and setNpoints().
Referenced by runImplementation().
void PreChiSquare::run | ( | ) |
|
virtual |
Runs the current algorithm implementation.
return true if OK. false on error.
Implements PreAlgorithm.
Definition at line 65 of file PreChiSquare.cpp.
References init(), num_layers, PreAlgorithm::params_, PreAlgorithm::result_by_layer_, PreMultiContainer< PreMultiContainerKeyT >::retrieve(), setChicell(), setExpected(), setMeasured(), setStatistic(), statistic1, statistic2, and PreMultiContainer< PreMultiContainerKeyT >::store().
void PreChiSquare::setChicell | ( | ) |
Definition at line 298 of file PreChiSquare.cpp.
References chicell, expected, measured, and nclass.
Referenced by runImplementation().
void PreChiSquare::setDelta | ( | ) |
Definition at line 217 of file PreChiSquare.cpp.
References delta, minimum, my_presences, and nclass.
Referenced by init().
void PreChiSquare::setExpected | ( | ) |
Definition at line 270 of file PreChiSquare.cpp.
References classLimit, expected, measured, and nclass.
Referenced by runImplementation().
void PreChiSquare::setMeasured | ( | size_t | layer1, |
size_t | layer2 | ||
) |
Definition at line 243 of file PreChiSquare.cpp.
References classLimit, delta, measured, minimum, my_presences, and nclass.
Referenced by runImplementation().
void PreChiSquare::setMeasuredZero | ( | ) |
void PreChiSquare::setMinimum | ( | ) |
Definition at line 194 of file PreChiSquare.cpp.
References minimum, and my_presences.
Referenced by init().
void PreChiSquare::setNclass | ( | ) |
Definition at line 188 of file PreChiSquare.cpp.
References nclass, and num_points.
Referenced by init().
void PreChiSquare::setNlayers | ( | SamplerPtr | samplerPtr | ) |
Definition at line 167 of file PreChiSquare.cpp.
References Log::error(), Log::instance(), and num_layers.
Referenced by init().
void PreChiSquare::setNpoints | ( | ) |
Definition at line 155 of file PreChiSquare.cpp.
References my_presences, and num_points.
Referenced by init().
void PreChiSquare::setStatistic | ( | size_t | layer1, |
size_t | layer2 | ||
) |
Definition at line 315 of file PreChiSquare.cpp.
References chicell, classLimit, nclass, statistic1, and statistic2.
Referenced by runImplementation().
|
private |
Definition at line 58 of file PreChiSquare.hh.
Referenced by setChicell(), and setStatistic().
|
private |
Definition at line 54 of file PreChiSquare.hh.
Referenced by getDelta(), setDelta(), and setMeasured().
|
private |
Definition at line 57 of file PreChiSquare.hh.
Referenced by setChicell(), and setExpected().
|
private |
Definition at line 56 of file PreChiSquare.hh.
Referenced by setChicell(), setExpected(), and setMeasured().
|
private |
Definition at line 53 of file PreChiSquare.hh.
Referenced by getMinimum(), setDelta(), setMeasured(), and setMinimum().
|
private |
Definition at line 55 of file PreChiSquare.hh.
Referenced by init(), setDelta(), setMeasured(), setMinimum(), and setNpoints().
|
private |
Definition at line 52 of file PreChiSquare.hh.
Referenced by getNclass(), init(), setChicell(), setDelta(), setExpected(), setMeasured(), setNclass(), and setStatistic().
|
private |
Definition at line 51 of file PreChiSquare.hh.
Referenced by getNlayers(), runImplementation(), and setNlayers().
|
private |
Definition at line 50 of file PreChiSquare.hh.
Referenced by getNpoints(), setNclass(), and setNpoints().
|
private |
Definition at line 59 of file PreChiSquare.hh.
Referenced by runImplementation(), and setStatistic().
|
private |
Definition at line 60 of file PreChiSquare.hh.
Referenced by runImplementation(), and setStatistic().