VTK  9.5.20251215
vtkCorrelativeStatistics.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2011 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
33
34#ifndef vtkCorrelativeStatistics_h
35#define vtkCorrelativeStatistics_h
36
37#include "vtkFiltersStatisticsModule.h" // For export macro
39
40VTK_ABI_NAMESPACE_BEGIN
42class vtkStringArray;
43class vtkTable;
44class vtkVariant;
45class vtkDoubleArray;
46
47class VTKFILTERSSTATISTICS_EXPORT vtkCorrelativeStatistics : public vtkStatisticsAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55 int GetMaximumNumberOfColumnsPerRequest() const override { return 2; }
56
61
62protected:
65
70
74 void Derive(vtkStatisticalModel*) override;
75
80
84 void Assess(vtkTable* inData, vtkStatisticalModel* inMeta, vtkTable* outData) override
85 {
86 this->Superclass::Assess(inData, inMeta, outData, 2);
87 }
88
94
98 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
99 AssessFunctor*& dfunc) override;
100
101private:
103 void operator=(const vtkCorrelativeStatistics&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
void Derive(vtkStatisticalModel *) override
Execute the calculations required by the Derive option.
static vtkCorrelativeStatistics * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkDoubleArray * CalculatePValues(vtkDoubleArray *)
Calculate p-value.
bool Aggregate(vtkDataObjectCollection *, vtkStatisticalModel *) override
Given a collection of models, calculate aggregate model.
void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) override
Provide the appropriate assessment functor.
void Learn(vtkTable *, vtkTable *, vtkStatisticalModel *) override
Execute the calculations required by the Learn option.
int GetMaximumNumberOfColumnsPerRequest() const override
Correlative statistics requests are bivariate.
~vtkCorrelativeStatistics() override
void Test(vtkTable *, vtkStatisticalModel *, vtkTable *) override
Execute the calculations required by the Test option.
void Assess(vtkTable *inData, vtkStatisticalModel *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
maintain an unordered list of data objects
general representation of visualization data
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:108
a base class for statistical modeling of other data
A base class for a functor that assesses data.
virtual void Assess(vtkTable *, vtkStatisticalModel *, vtkTable *)=0
Execute the calculations required by the Assess option.
vtkStatisticsAlgorithm()
Return a new instance of a subclass named and configured by the algorithmParameters.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
A type representing the union of many types.
Definition vtkVariant.h:162