00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDescriptiveStatistics.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 -------------------------------------------------------------------------*/ 00047 #ifndef __vtkDescriptiveStatistics_h 00048 #define __vtkDescriptiveStatistics_h 00049 00050 #include "vtkUnivariateStatisticsAlgorithm.h" 00051 00052 class vtkStringArray; 00053 class vtkTable; 00054 00055 class VTK_INFOVIS_EXPORT vtkDescriptiveStatistics : public vtkUnivariateStatisticsAlgorithm 00056 { 00057 public: 00058 vtkTypeRevisionMacro(vtkDescriptiveStatistics, vtkUnivariateStatisticsAlgorithm); 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 static vtkDescriptiveStatistics* New(); 00061 00063 00066 vtkSetMacro(SignedDeviations,int); 00067 vtkGetMacro(SignedDeviations,int); 00068 vtkBooleanMacro(SignedDeviations,int); 00070 00073 void SetNominalParameter( const char* name ); 00074 00077 void SetDeviationParameter( const char* name ); 00078 00079 protected: 00080 vtkDescriptiveStatistics(); 00081 ~vtkDescriptiveStatistics(); 00082 00084 00085 virtual void ExecuteLearn( vtkTable* inData, 00086 vtkDataObject* outMeta ); 00088 00090 virtual void ExecuteDerive( vtkDataObject* ); 00091 00092 int SignedDeviations; 00093 00094 //BTX 00096 00097 virtual void SelectAssessFunctor( vtkTable* outData, 00098 vtkDataObject* inMeta, 00099 vtkStringArray* rowNames, 00100 AssessFunctor*& dfunc ); 00102 //ETX 00103 00104 private: 00105 vtkDescriptiveStatistics( const vtkDescriptiveStatistics& ); // Not implemented 00106 void operator = ( const vtkDescriptiveStatistics& ); // Not implemented 00107 }; 00108 00109 #endif 00110