VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContingencyStatistics.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2011 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00048 #ifndef __vtkContingencyStatistics_h 00049 #define __vtkContingencyStatistics_h 00050 00051 #include "vtkStatisticsAlgorithm.h" 00052 00053 class vtkMultiBlockDataSet; 00054 class vtkStringArray; 00055 class vtkTable; 00056 class vtkVariant; 00057 00058 class VTK_INFOVIS_EXPORT vtkContingencyStatistics : public vtkStatisticsAlgorithm 00059 { 00060 public: 00061 vtkTypeMacro(vtkContingencyStatistics, vtkStatisticsAlgorithm); 00062 void PrintSelf(ostream& os, vtkIndent indent); 00063 static vtkContingencyStatistics* New(); 00064 00066 00068 virtual void Aggregate( vtkDataObjectCollection*, 00069 vtkMultiBlockDataSet* ) { return; }; 00071 00072 protected: 00073 vtkContingencyStatistics(); 00074 ~vtkContingencyStatistics(); 00075 00077 00078 virtual void Learn( vtkTable*, 00079 vtkTable*, 00080 vtkMultiBlockDataSet* ); 00082 00084 virtual void Derive( vtkMultiBlockDataSet* ); 00085 00087 00088 virtual void Test( vtkTable*, 00089 vtkMultiBlockDataSet*, 00090 vtkTable* ); 00092 00094 00095 virtual void Assess( vtkTable*, 00096 vtkMultiBlockDataSet*, 00097 vtkTable* ); 00099 00100 //BTX 00102 00105 virtual void SelectAssessFunctor( vtkTable* outData, 00106 vtkDataObject* inMeta, 00107 vtkStringArray* rowNames, 00108 AssessFunctor*& dfunc ); 00110 00111 00113 virtual void SelectAssessFunctor( vtkTable* outData, 00114 vtkMultiBlockDataSet* inMeta, 00115 vtkIdType pairKey, 00116 vtkStringArray* rowNames, 00117 AssessFunctor*& dfunc ); 00118 //ETX 00120 00121 private: 00122 vtkContingencyStatistics(const vtkContingencyStatistics&); // Not implemented 00123 void operator=(const vtkContingencyStatistics&); // Not implemented 00124 }; 00125 00126 #endif 00127