VTK  9.5.20251217
vtkContingencyStatistics.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
29
30#ifndef vtkContingencyStatistics_h
31#define vtkContingencyStatistics_h
32
33#include "vtkFiltersStatisticsModule.h" // For export macro
35
36VTK_ABI_NAMESPACE_BEGIN
38class vtkStringArray;
39class vtkTable;
40class vtkVariant;
41class vtkIdTypeArray;
42class vtkDoubleArray;
43
44class VTKFILTERSSTATISTICS_EXPORT vtkContingencyStatistics : public vtkStatisticsAlgorithm
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52 int GetMaximumNumberOfColumnsPerRequest() const override { return 2; }
53
58 bool Aggregate(vtkDataObjectCollection*, vtkStatisticalModel*) override { return false; }
59
60protected:
63
68
72 void Derive(vtkStatisticalModel*) override;
73
78
83
88 virtual void CalculatePValues(vtkTable*);
89
95 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
96 AssessFunctor*& dfunc) override;
101 virtual void SelectAssessFunctor(vtkTable* outData, vtkStatisticalModel* inMeta,
102 vtkIdType pairKey, vtkStringArray* rowNames, AssessFunctor*& dfunc);
103
104private:
106 void operator=(const vtkContingencyStatistics&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif
virtual void CalculatePValues(vtkTable *)
Calculate p-value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Learn(vtkTable *, vtkTable *, vtkStatisticalModel *) override
Execute the calculations required by the Learn option.
virtual void SelectAssessFunctor(vtkTable *outData, vtkStatisticalModel *inMeta, vtkIdType pairKey, vtkStringArray *rowNames, AssessFunctor *&dfunc)
Provide the appropriate assessment functor.
void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) override
Provide the appropriate assessment functor.
static vtkContingencyStatistics * New()
bool Aggregate(vtkDataObjectCollection *, vtkStatisticalModel *) override
Given a collection of models, calculate aggregate model NB: not implemented.
void Test(vtkTable *, vtkStatisticalModel *, vtkTable *) override
Execute the calculations required by the Test option.
~vtkContingencyStatistics() override
void Derive(vtkStatisticalModel *) override
Execute the calculations required by the Derive option.
void Assess(vtkTable *, vtkStatisticalModel *, vtkTable *) override
Execute the calculations required by the Assess option.
int GetMaximumNumberOfColumnsPerRequest() const override
Contingency statistics requests are bivariate.
maintain an unordered list of data objects
general representation of visualization data
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
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.
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
int vtkIdType
Definition vtkType.h:368