VTK
vtkPCAStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkPCAStatistics.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2010 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19  -------------------------------------------------------------------------*/
52 #ifndef __vtkPCAStatistics_h
53 #define __vtkPCAStatistics_h
54 
56 
57 class vtkDoubleArray;
58 
60 {
61 public:
63  virtual void PrintSelf( ostream& os, vtkIndent indent );
64  static vtkPCAStatistics* New();
65 
66  //BTX
68 
70  {
71  NONE,
75  NUM_NORMALIZATION_SCHEMES
76  };
78 
80 
83  {
87  NUM_BASIS_SCHEMES
88  };
89  //ETX
91 
93 
111  vtkSetMacro(NormalizationScheme,int);
112  vtkGetMacro(NormalizationScheme,int);
113  virtual void SetNormalizationSchemeByName( const char* sname );
114  virtual const char* GetNormalizationSchemeName( int scheme );
116 
118 
136  virtual vtkTable* GetSpecifiedNormalization();
137  virtual void SetSpecifiedNormalization( vtkTable* );
139 
141 
147  void GetEigenvalues(int request, vtkDoubleArray*);
148  void GetEigenvalues(vtkDoubleArray*);
149  double GetEigenvalue(int request, int i);
150  double GetEigenvalue(int i);
152 
154 
162  void GetEigenvectors(int request, vtkDoubleArray* eigenvectors);
163  void GetEigenvectors(vtkDoubleArray* eigenvectors);
164  void GetEigenvector(int i, vtkDoubleArray* eigenvector);
165  void GetEigenvector(int request, int i, vtkDoubleArray* eigenvector);
167 
169 
189  vtkSetMacro(BasisScheme,int);
190  vtkGetMacro(BasisScheme,int);
191  virtual const char* GetBasisSchemeName( int schemeIndex );
192  virtual void SetBasisSchemeByName( const char* schemeName );
194 
196 
199  vtkSetMacro(FixedBasisSize,int);
200  vtkGetMacro(FixedBasisSize,int);
202 
204 
208  vtkSetClampMacro(FixedBasisEnergy,double,0.,1.);
209  vtkGetMacro(FixedBasisEnergy,double);
211 
213 
216  virtual bool SetParameter( const char* parameter,
217  int index,
218  vtkVariant value );
220 
221 protected:
223  ~vtkPCAStatistics();
224 
228  virtual int FillInputPortInformation( int port, vtkInformation* info );
229 
231  virtual void Derive( vtkMultiBlockDataSet* );
232 
234 
235  virtual void Test( vtkTable*,
237  vtkTable* );
239 
241 
242  virtual void Assess( vtkTable*,
244  vtkTable* );
246 
247  //BTX
249 
250  virtual void SelectAssessFunctor( vtkTable* inData,
251  vtkDataObject* inMeta,
252  vtkStringArray* rowNames,
253  AssessFunctor*& dfunc );
254  //ETX
256 
261 
262  //BTX
263  static const char* BasisSchemeEnumNames[NUM_BASIS_SCHEMES + 1];
264  static const char* NormalizationSchemeEnumNames[NUM_NORMALIZATION_SCHEMES + 1];
265  //ETX
266 
267 private:
268  vtkPCAStatistics( const vtkPCAStatistics& ); // Not implemented
269  void operator = ( const vtkPCAStatistics& ); // Not implemented
270 };
271 
272 #endif // __vtkPCAStatistics_h
273