openModeller  Version 1.5.0
PreChiSquare Class Reference

#include <PreChiSquare.hh>

Inheritance diagram for PreChiSquare:
Inheritance graph
Collaboration diagram for PreChiSquare:
Collaboration graph

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 ()
 
- Public Member Functions inherited from PreAlgorithm
virtual ~PreAlgorithm ()
 
bool apply ()
 
bool reset (const PreParameters &params)
 
void resetState (PreParameters &params)
 
const PreParametersgetParameters () 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 PreAlgorithmDefaultObject (const PreParameters &params)
 
- Protected Member Functions inherited from PreAlgorithm
 PreAlgorithm ()
 
bool checkInternalParameters () const
 
- Protected Attributes inherited from PreAlgorithm
PreParameters params_
 
std::map< string, PreParametersresult_by_layer_
 

Detailed Description

Definition at line 47 of file PreChiSquare.hh.

Constructor & Destructor Documentation

PreChiSquare::PreChiSquare ( )

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.

PreChiSquare::~PreChiSquare ( )

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.

Sample PreChiSquare::getDelta ( )

Definition at line 237 of file PreChiSquare.cpp.

References delta.

string PreChiSquare::getDescription ( ) const
inlinevirtual

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.

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Member Data Documentation

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