VTK  9.7.1
vtkMultiCorrelativeStatistics.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2010 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
65 #ifndef vtkMultiCorrelativeStatistics_h
66 #define vtkMultiCorrelativeStatistics_h
67 
68 #include "vtkFiltersStatisticsModule.h" // For export macro
69 #include "vtkStatisticsAlgorithm.h"
70 
71 VTK_ABI_NAMESPACE_BEGIN
72 class vtkDoubleArray;
74 class vtkOrderStatistics;
75 class vtkVariant;
76 
77 class VTKFILTERSSTATISTICS_EXPORT vtkMultiCorrelativeStatistics : public vtkStatisticsAlgorithm
78 {
79 public:
81  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
88 
90 
95  vtkSetMacro(MedianAbsoluteDeviation, bool);
96  vtkGetMacro(MedianAbsoluteDeviation, bool);
97  vtkBooleanMacro(MedianAbsoluteDeviation, bool);
99 
101  void AppendAlgorithmParameters(std::string& algorithmParameters) const override;
102 
104  std::size_t ConsumeNextAlgorithmParameter(
105  vtkStringToken parameterName, const std::string& algorithmParameters) override;
106 
107 protected:
109  ~vtkMultiCorrelativeStatistics() override;
110 
114  void Learn(vtkTable*, vtkTable*, vtkStatisticalModel*) override;
115 
119  void Derive(vtkStatisticalModel*) override;
120 
124  void Assess(vtkTable*, vtkStatisticalModel*, vtkTable*) override;
125 
129  void Test(vtkTable*, vtkStatisticalModel*, vtkTable*) override {}
130 
134  void SelectAssessFunctor(vtkTable* inData, vtkDataObject* inMeta, vtkStringArray* rowNames,
135  AssessFunctor*& dfunc) override;
136 
140  virtual void ComputeMedian(vtkTable* inData, vtkTable* outData);
141 
146  virtual vtkOrderStatistics* CreateOrderStatisticsInstance();
147 
149 
150 private:
152  void operator=(const vtkMultiCorrelativeStatistics&) = delete;
153 };
154 
155 VTK_ABI_NAMESPACE_END
156 #endif
void Test(vtkTable *, vtkStatisticalModel *, vtkTable *) override
Execute the calculations required by the Test option.
a base class for statistical modeling of other data
virtual std::size_t ConsumeNextAlgorithmParameter(vtkStringToken parameterName, const std::string &algorithmParameters)
Consume a single parameter value, setting the value on this instance of the class.
static vtkTableAlgorithm * New()
A class for univariate order statistics.
maintain an unordered list of data objects
virtual void AppendAlgorithmParameters(std::string &algorithmParameters) const
Subclasses must override this method if they have any internal ivars that affect the behavior of Requ...
virtual void Assess(vtkTable *, vtkStatisticalModel *, vtkTable *)=0
Execute the calculations required by the Assess option.
a vtkAbstractArray subclass for strings
virtual bool Aggregate(vtkDataObjectCollection *collection, vtkStatisticalModel *model)=0
Given a collection of models, calculate an aggregate model.
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.
A class for multivariate linear correlation.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void Derive(vtkStatisticalModel *)=0
Execute the calculations required by the Derive option.
Represent a string by its integer hash.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:59
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.