VTK  9.4.20250105
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
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
56
57protected:
60
65
70
75
80
85 virtual void CalculatePValues(vtkTable*);
86
92 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
93 AssessFunctor*& dfunc) override;
98 virtual void SelectAssessFunctor(vtkTable* outData, vtkMultiBlockDataSet* inMeta,
99 vtkIdType pairKey, vtkStringArray* rowNames, AssessFunctor*& dfunc);
100
101private:
103 void operator=(const vtkContingencyStatistics&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
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 Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Assess option.
virtual void SelectAssessFunctor(vtkTable *outData, vtkMultiBlockDataSet *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()
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
~vtkContingencyStatistics() override
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
void Derive(vtkMultiBlockDataSet *) override
Execute the calculations required by the Derive option.
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
Composite dataset that organizes datasets into blocks.
A base class for a functor that assesses data.
Base class for statistics algorithms.
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:315