NIREP
|
00001 //Figures ou the Transitivity Error. 00002 00003 #pragma once 00004 #ifndef __nirepTE_H_ 00005 #define __nirepTE_H_ 00006 00007 #include "NIREPStatistics.h" 00008 #include "NIREPInverseConsistencyError.h" 00009 00010 class NIREPTransitivityError : public NIREPInverseConsistencyError 00011 { 00012 public: 00013 // Constructor with Evaluator reference 00014 NIREPTransitivityError(NIREPEvaluator* eval) : 00015 NIREPInverseConsistencyError(eval) {}; 00016 00017 // Destructor 00018 ~NIREPTransitivityError() {}; 00019 00020 // Implementation of the virtual function 00021 // Transitivity Error 00022 virtual TextTable ComputeStatistic(const std::vector<std::string>& arg, 00023 DisplayDescription* displayDescription); 00024 00025 // Generate transitivity image 00026 // Method 1: || h_12(h_23(x)) - h_13(x) ||^2 00027 // = || u_23(x) + u_12(x+u_23(x)) - u_13(x) ||^2 00028 gec::SpatialData* ComputeTEImage(const gec::Transformation* u123, 00029 const gec::Transformation* u13); 00030 00031 // Generate transitivity image 00032 // Method 2: 00033 // || h_31(h_12(h_23(x))) - x ||^2 00034 // = || u_23(x) + u_12(x+u_23(x)) + u_31(x+u_23(x)+u_12(x+u_23(x))) ||^2 00035 gec::SpatialData* ComputeTEImage(const gec::Transformation* u1231); 00036 00037 protected: 00038 // Default constructor 00039 NIREPTransitivityError() : NIREPInverseConsistencyError() {}; 00040 00041 }; 00042 00043 #endif // __nirepTE_H_