openModeller  Version 1.4.0
PreChiSquare Class Reference

#include <PreChiSquare.hh>

Inheritance diagram for PreChiSquare:
Collaboration diagram for PreChiSquare:

List of all members.

Public Member Functions

 PreChiSquare ()
 ~PreChiSquare ()
string getDescription () const
bool checkParameters (const PreParameters &parameters) 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 ()

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

Detailed Description

Definition at line 47 of file PreChiSquare.hh.


Constructor & Destructor Documentation

Declaration of class PreChiSquare

Author:
Missae Yamamoto (missae at dpi . inpe . br)
Id:
PreChiSquare.cpp 5610 2012-08-22 19:35:20Z dbolgheroni

LICENSE INFORMATION

Copyright(c) 2008 by INPE - Instituto Nacional de Pesquisas Espaciais

http://www.inpe.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 35 of file PreChiSquare.cpp.

Definition at line 39 of file PreChiSquare.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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.

Returns:
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.

Definition at line 182 of file PreChiSquare.cpp.

References nclass.

Definition at line 161 of file PreChiSquare.cpp.

References num_layers.

Definition at line 149 of file PreChiSquare.cpp.

References num_points.

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().

Here is the call graph for this function:

Definition at line 298 of file PreChiSquare.cpp.

References chicell, expected, measured, and nclass.

Referenced by runImplementation().

Definition at line 217 of file PreChiSquare.cpp.

References delta, minimum, my_presences, and nclass.

Referenced by init().

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().

Definition at line 194 of file PreChiSquare.cpp.

References minimum, and my_presences.

Referenced by init().

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().

Here is the call graph for this function:

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().


Member Data Documentation

Definition at line 58 of file PreChiSquare.hh.

Referenced by setChicell(), and setStatistic().

Definition at line 54 of file PreChiSquare.hh.

Referenced by getDelta(), setDelta(), and setMeasured().

Definition at line 57 of file PreChiSquare.hh.

Referenced by setChicell(), and setExpected().

Definition at line 56 of file PreChiSquare.hh.

Referenced by setChicell(), setExpected(), and setMeasured().

Definition at line 53 of file PreChiSquare.hh.

Referenced by getMinimum(), setDelta(), setMeasured(), and setMinimum().

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().


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