00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkContingencyStatistics.h,v $ 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 2008 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 -------------------------------------------------------------------------*/ 00046 #ifndef __vtkContingencyStatistics_h 00047 #define __vtkContingencyStatistics_h 00048 00049 #include "vtkBivariateStatisticsAlgorithm.h" 00050 00051 class vtkStringArray; 00052 class vtkTable; 00053 00054 class VTK_INFOVIS_EXPORT vtkContingencyStatistics : public vtkBivariateStatisticsAlgorithm 00055 { 00056 public: 00057 vtkTypeRevisionMacro(vtkContingencyStatistics, vtkBivariateStatisticsAlgorithm); 00058 void PrintSelf(ostream& os, vtkIndent indent); 00059 static vtkContingencyStatistics* New(); 00060 00061 //BTX 00063 00064 virtual void SelectAssessFunctor( vtkTable* outData, 00065 vtkDataObject* inMeta, 00066 vtkStringArray* rowNames, 00067 AssessFunctor*& dfunc ); 00069 //ETX 00070 00071 protected: 00072 vtkContingencyStatistics(); 00073 ~vtkContingencyStatistics(); 00074 00076 00077 virtual void ExecuteLearn( vtkTable* inData, 00078 vtkDataObject* outMeta ); 00079 // Description: 00080 // Execute the calculations required by the Derive option. 00081 virtual void ExecuteDerive( vtkDataObject* ); 00083 00084 private: 00085 vtkContingencyStatistics(const vtkContingencyStatistics&); // Not implemented 00086 void operator=(const vtkContingencyStatistics&); // Not implemented 00087 }; 00088 00089 #endif 00090