VTK  9.7.1
vtkAutoCorrelativeStatistics.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
31 #ifndef vtkAutoCorrelativeStatistics_h
32 #define vtkAutoCorrelativeStatistics_h
33 
34 #include "vtkFiltersStatisticsModule.h" // For export macro
35 #include "vtkStatisticsAlgorithm.h"
36 
37 VTK_ABI_NAMESPACE_BEGIN
39 class vtkStringArray;
40 class vtkTable;
41 class vtkVariant;
42 class vtkDoubleArray;
43 
44 class VTKFILTERSSTATISTICS_EXPORT vtkAutoCorrelativeStatistics : public vtkStatisticsAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52  int GetMaximumNumberOfColumnsPerRequest() const override { return 1; }
53 
55 
63  vtkSetClampMacro(SliceCardinality, vtkIdType, 0, VTK_ID_MAX);
64  vtkGetMacro(SliceCardinality, vtkIdType);
66 
71 
72 protected:
74  ~vtkAutoCorrelativeStatistics() override;
75 
80  void Learn(vtkTable*, vtkTable*, vtkStatisticalModel*) override;
81 
85  void Derive(vtkStatisticalModel*) override;
86 
90  void Test(vtkTable*, vtkStatisticalModel*, vtkTable*) override {}
91 
95  void Assess(vtkTable* inData, vtkStatisticalModel* inMeta, vtkTable* outData) override
96  {
97  this->Superclass::Assess(inData, inMeta, outData, 1);
98  }
99 
104  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
105 
109  void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
110  AssessFunctor*& dfunc) override;
111 
113 
114 private:
116  void operator=(const vtkAutoCorrelativeStatistics&) = delete;
117 };
118 
119 VTK_ABI_NAMESPACE_END
120 #endif
int GetMaximumNumberOfColumnsPerRequest() const override
This filter requires univariate requests.
a base class for statistical modeling of other data
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
a vtkAbstractArray subclass for strings
virtual bool Aggregate(vtkDataObjectCollection *collection, vtkStatisticalModel *model)=0
Given a collection of models, calculate an aggregate model.
void Test(vtkTable *, vtkStatisticalModel *, vtkTable *) override
Execute the calculations required by the Test option.
int vtkIdType
Definition: vtkType.h:363
A type representing the union of many types.
Definition: vtkVariant.h:52
dynamic, self-adjusting array of double
virtual void Learn(vtkTable *, vtkTable *, vtkStatisticalModel *)=0
Execute the calculations required by the Learn option, given some input Data.
Base class for statistics algorithms.
void Assess(vtkTable *inData, vtkStatisticalModel *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void Derive(vtkStatisticalModel *)=0
Execute the calculations required by the Derive option.
A class for univariate auto-correlative statistics.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:59
#define VTK_ID_MAX
Definition: vtkType.h:367
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
general representation of visualization data
Definition: vtkDataObject.h:55
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.