openModeller
Version 1.4.0
|
#include <PreChiSquare.hh>
Definition at line 47 of file PreChiSquare.hh.
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.
Definition at line 39 of file PreChiSquare.cpp.
bool PreChiSquare::checkParameters | ( | const PreParameters & | parameters | ) | const [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().
void PreChiSquare::getAcceptedParameters | ( | stringMap & | info | ) | [virtual] |
Implements PreAlgorithm.
Definition at line 107 of file PreChiSquare.cpp.
Definition at line 237 of file PreChiSquare.cpp.
References delta.
string PreChiSquare::getDescription | ( | ) | const [inline, virtual] |
Return a description about the algorithm.
Implements PreAlgorithm.
Definition at line 68 of file PreChiSquare.hh.
void PreChiSquare::getLayerResultSpec | ( | stringMap & | info | ) | [virtual] |
Implements PreAlgorithm.
Definition at line 119 of file PreChiSquare.cpp.
void PreChiSquare::getLayersetResultSpec | ( | stringMap & | info | ) | [virtual] |
Implements PreAlgorithm.
Definition at line 113 of file PreChiSquare.cpp.
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 | ( | ) |
bool PreChiSquare::runImplementation | ( | ) | [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().
Scalar PreChiSquare::chicell[classLimit][classLimit] [private] |
Definition at line 58 of file PreChiSquare.hh.
Referenced by setChicell(), and setStatistic().
Sample PreChiSquare::delta [private] |
Definition at line 54 of file PreChiSquare.hh.
Referenced by getDelta(), setDelta(), and setMeasured().
Scalar PreChiSquare::expected[classLimit][classLimit] [private] |
Definition at line 57 of file PreChiSquare.hh.
Referenced by setChicell(), and setExpected().
Scalar PreChiSquare::measured[classLimit][classLimit] [private] |
Definition at line 56 of file PreChiSquare.hh.
Referenced by setChicell(), setExpected(), and setMeasured().
Sample PreChiSquare::minimum [private] |
Definition at line 53 of file PreChiSquare.hh.
Referenced by getMinimum(), setDelta(), setMeasured(), and setMinimum().
OccurrencesPtr PreChiSquare::my_presences [private] |
Definition at line 55 of file PreChiSquare.hh.
Referenced by init(), setDelta(), setMeasured(), setMinimum(), and setNpoints().
size_t PreChiSquare::nclass [private] |
Definition at line 52 of file PreChiSquare.hh.
Referenced by getNclass(), init(), setChicell(), setDelta(), setExpected(), setMeasured(), setNclass(), and setStatistic().
size_t PreChiSquare::num_layers [private] |
Definition at line 51 of file PreChiSquare.hh.
Referenced by getNlayers(), runImplementation(), and setNlayers().
size_t PreChiSquare::num_points [private] |
Definition at line 50 of file PreChiSquare.hh.
Referenced by getNpoints(), setNclass(), and setNpoints().
std::vector< size_t > PreChiSquare::statistic1 [private] |
Definition at line 59 of file PreChiSquare.hh.
Referenced by runImplementation(), and setStatistic().
std::vector< size_t > PreChiSquare::statistic2 [private] |
Definition at line 60 of file PreChiSquare.hh.
Referenced by runImplementation(), and setStatistic().