VTK  9.1.0
vtkContingencyStatistics.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkContingencyStatistics.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2011 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
43#ifndef vtkContingencyStatistics_h
44#define vtkContingencyStatistics_h
45
46#include "vtkFiltersStatisticsModule.h" // For export macro
48
50class vtkStringArray;
51class vtkTable;
52class vtkVariant;
53class vtkIdTypeArray;
54class vtkDoubleArray;
55
56class VTKFILTERSSTATISTICS_EXPORT vtkContingencyStatistics : public vtkStatisticsAlgorithm
57{
58public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
68
69protected:
72
77
82
87
92
97 virtual void CalculatePValues(vtkTable*);
98
104 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
105 AssessFunctor*& dfunc) override;
110 virtual void SelectAssessFunctor(vtkTable* outData, vtkMultiBlockDataSet* inMeta,
111 vtkIdType pairKey, vtkStringArray* rowNames, AssessFunctor*& dfunc);
112
113private:
115 void operator=(const vtkContingencyStatistics&) = delete;
116};
117
118#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:113
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:172
A atomic type representing the union of many types.
Definition: vtkVariant.h:145
int vtkIdType
Definition: vtkType.h:332