VTK  9.0.3
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  void operator()(vtkDoubleArray* result, vtkIdType row) override;
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
35  // normalize the CDF
36  std::vector<double> Tuple; // Place to store product of detrended input tuple and Cholesky inverse
37  std::vector<double> EmptyTuple; // Used to quickly initialize Tuple for each datum
38 };
39 
40 #endif // vtkMultiCorrelativeStatisticsAssessFunctor_h
41 // VTK-HeaderTest-Exclude: vtkMultiCorrelativeStatisticsAssessFunctor.h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
dynamic, self-adjusting array of double
static vtkMultiCorrelativeAssessFunctor * New()
void operator()(vtkDoubleArray *result, vtkIdType row) override
virtual bool Initialize(vtkTable *inData, vtkTable *reqModel, bool cholesky=true)
A base class for a functor that assesses data.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
int vtkIdType
Definition: vtkType.h:338