VTK
vtkMultiCorrelativeStatisticsAssessFunctor.h
Go to the documentation of this file.
1 #ifndef vtkMultiCorrelativeStatisticsAssessFunctor_h
2 #define vtkMultiCorrelativeStatisticsAssessFunctor_h
3 
5 
6 #include <vector>
7 
8 class vtkDataArray;
9 class vtkTable;
10 
11 #define VTK_MULTICORRELATIVE_KEYCOLUMN1 "Column1"
12 #define VTK_MULTICORRELATIVE_KEYCOLUMN2 "Column2"
13 #define VTK_MULTICORRELATIVE_ENTRIESCOL "Entries"
14 #define VTK_MULTICORRELATIVE_AVERAGECOL "Mean"
15 #define VTK_MULTICORRELATIVE_COLUMNAMES "Column"
16 
18 {
19 public:
21 
24  virtual bool Initialize( vtkTable* inData, vtkTable* reqModel, bool cholesky = true );
25 
26  virtual void operator () ( vtkVariantArray* result, vtkIdType row );
27 
28  vtkIdType GetNumberOfColumns() { return static_cast<vtkIdType>( this->Columns.size() ); }
29  vtkDataArray* GetColumn( vtkIdType colIdx ) { return this->Columns[colIdx]; }
30 
31  std::vector<vtkDataArray*> Columns; // Source of data
32  double* Center; // Offset per column (usu. to re-center the data about the mean)
33  std::vector<double> Factor; // Weights per column
34  //double Normalization; // Scale factor for the volume under a multivariate Gaussian used to normalize the CDF
35  std::vector<double> Tuple; // Place to store product of detrended input tuple and Cholesky inverse
36  std::vector<double> EmptyTuple; // Used to quickly initialize Tuple for each datum
37 };
38 
39 #endif // vtkMultiCorrelativeStatisticsAssessFunctor_h
40 // VTK-HeaderTest-Exclude: vtkMultiCorrelativeStatisticsAssessFunctor.h
virtual bool Initialize(vtkTable *inData, vtkTable *reqModel, bool cholesky=true)
An array holding vtkVariants.
int vtkIdType
Definition: vtkType.h:275
static vtkMultiCorrelativeAssessFunctor * New()
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual void operator()(vtkVariantArray *result, vtkIdType row)