VTK: Filters/Statistics/vtkMultiCorrelativeStatisticsAssessFunctor.h Source File

| VTK 9.3.1

vtkMultiCorrelativeStatisticsAssessFunctor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkMultiCorrelativeStatisticsAssessFunctor_h
4 #define vtkMultiCorrelativeStatisticsAssessFunctor_h
5
6 #include "vtkStatisticsAlgorithm.h"
7
8 #include <vector>
9
10 VTK_ABI_NAMESPACE_BEGIN
11 class vtkDataArray;
12 class vtkTable;
13
14 #define VTK_MULTICORRELATIVE_KEYCOLUMN1 "Column1"
15 #define VTK_MULTICORRELATIVE_KEYCOLUMN2 "Column2"
16 #define VTK_MULTICORRELATIVE_ENTRIESCOL "Entries"
17 #define VTK_MULTICORRELATIVE_AVERAGECOL "Mean"
18 #define VTK_MULTICORRELATIVE_COLUMNAMES "Column"
19
20 class vtkMultiCorrelativeAssessFunctor : public vtkStatisticsAlgorithm::AssessFunctor
21 {
22 public:
23 static vtkMultiCorrelativeAssessFunctor* New();
24
25 vtkMultiCorrelativeAssessFunctor() = default;
26 ~vtkMultiCorrelativeAssessFunctor() override = default;
27 virtual bool Initialize(vtkTable* inData, vtkTable* reqModel, bool cholesky = true);
28
29 void operator()(vtkDoubleArray* result, vtkIdType row) override;
30
31 vtkIdType GetNumberOfColumns() { return static_cast<vtkIdType>(this->Columns.size()); }
32 vtkDataArray* GetColumn(vtkIdType colIdx) { return this->Columns[colIdx]; }
33
34 std::vector<vtkDataArray*> Columns; // Source of data
35 double* Center; // Offset per column (usu. to re-center the data about the mean)
36 std::vector<double> Factor; // Weights per column
37 // double Normalization; // Scale factor for the volume under a multivariate Gaussian used to
38 // normalize the CDF
39 std::vector<double> Tuple; // Place to store product of detrended input tuple and Cholesky inverse
40 std::vector<double> EmptyTuple; // Used to quickly initialize Tuple for each datum
41 };
42
43 VTK_ABI_NAMESPACE_END
44 #endif // vtkMultiCorrelativeStatisticsAssessFunctor_h
45 // VTK-HeaderTest-Exclude: vtkMultiCorrelativeStatisticsAssessFunctor.h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkMultiCorrelativeAssessFunctor
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:21
vtkMultiCorrelativeAssessFunctor::New
static vtkMultiCorrelativeAssessFunctor * New()
vtkMultiCorrelativeAssessFunctor::~vtkMultiCorrelativeAssessFunctor
~vtkMultiCorrelativeAssessFunctor() override=default
vtkMultiCorrelativeAssessFunctor::Tuple
std::vector< double > Tuple
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:39
vtkMultiCorrelativeAssessFunctor::operator()
void operator()(vtkDoubleArray *result, vtkIdType row) override
vtkMultiCorrelativeAssessFunctor::Initialize
virtual bool Initialize(vtkTable *inData, vtkTable *reqModel, bool cholesky=true)
vtkMultiCorrelativeAssessFunctor::Center
double * Center
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:35
vtkMultiCorrelativeAssessFunctor::EmptyTuple
std::vector< double > EmptyTuple
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:40
vtkMultiCorrelativeAssessFunctor::Columns
std::vector< vtkDataArray * > Columns
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:34
vtkMultiCorrelativeAssessFunctor::GetNumberOfColumns
vtkIdType GetNumberOfColumns()
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:31
vtkMultiCorrelativeAssessFunctor::Factor
std::vector< double > Factor
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:36
vtkMultiCorrelativeAssessFunctor::GetColumn
vtkDataArray * GetColumn(vtkIdType colIdx)
Definition: vtkMultiCorrelativeStatisticsAssessFunctor.h:32
vtkMultiCorrelativeAssessFunctor::vtkMultiCorrelativeAssessFunctor
vtkMultiCorrelativeAssessFunctor()=default
vtkStatisticsAlgorithm::AssessFunctor
A base class for a functor that assesses data.
Definition: vtkStatisticsAlgorithm.h:183
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkStatisticsAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315