VTK
vtkAutoCorrelativeStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkAutoCorrelativeStatistics.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 =========================================================================*/
43 #ifndef vtkAutoCorrelativeStatistics_h
44 #define vtkAutoCorrelativeStatistics_h
45 
46 #include "vtkFiltersStatisticsModule.h" // For export macro
47 #include "vtkStatisticsAlgorithm.h"
48 
50 class vtkStringArray;
51 class vtkTable;
52 class vtkVariant;
53 class vtkDoubleArray;
54 
55 class VTKFILTERSSTATISTICS_EXPORT vtkAutoCorrelativeStatistics : public vtkStatisticsAlgorithm
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
71  vtkSetClampMacro(SliceCardinality,vtkIdType,0,VTK_ID_MAX);
72  vtkGetMacro(SliceCardinality,vtkIdType);
74 
79  vtkMultiBlockDataSet* ) override;
80 
81 protected:
83  ~vtkAutoCorrelativeStatistics() override;
84 
89  void Learn( vtkTable*,
90  vtkTable*,
91  vtkMultiBlockDataSet* ) override;
92 
96  void Derive( vtkMultiBlockDataSet* ) override;
97 
101  void Test( vtkTable*,
103  vtkTable* ) override { return; };
104 
108  void Assess( vtkTable* inData,
109  vtkMultiBlockDataSet* inMeta,
110  vtkTable* outData ) override
111  { this->Superclass::Assess( inData, inMeta, outData, 1 ); }
112 
117  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
118 
122  void SelectAssessFunctor( vtkTable* outData,
123  vtkDataObject* inMeta,
124  vtkStringArray* rowNames,
125  AssessFunctor*& dfunc ) override;
126 
128 
129 private:
131  void operator = ( const vtkAutoCorrelativeStatistics& ) = delete;
132 };
133 
134 #endif
A base class for a functor that assesses data.
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
a vtkAbstractArray subclass for strings
int vtkIdType
Definition: vtkType.h:347
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
dynamic, self-adjusting array of double
Base class for statistics algorithms.
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *)=0
Given a collection of models, calculate aggregate model.
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
virtual void Derive(vtkMultiBlockDataSet *)=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:68
#define VTK_ID_MAX
Definition: vtkType.h:351
Composite dataset that organizes datasets into blocks.
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:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.