VTK
vtkContingencyStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkContingencyStatistics.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. 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  -------------------------------------------------------------------------*/
49 #ifndef vtkContingencyStatistics_h
50 #define vtkContingencyStatistics_h
51 
52 #include "vtkFiltersStatisticsModule.h" // For export macro
53 #include "vtkStatisticsAlgorithm.h"
54 
56 class vtkStringArray;
57 class vtkTable;
58 class vtkVariant;
59 class vtkIdTypeArray;
60 class vtkDoubleArray;
61 
62 class VTKFILTERSSTATISTICS_EXPORT vtkContingencyStatistics : public vtkStatisticsAlgorithm
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67  static vtkContingencyStatistics* New();
68 
74  vtkMultiBlockDataSet* ) override { return; };
75 
76 protected:
78  ~vtkContingencyStatistics() override;
79 
83  void Learn( vtkTable*,
84  vtkTable*,
85  vtkMultiBlockDataSet* ) override;
86 
90  void Derive( vtkMultiBlockDataSet* ) override;
91 
95  void Test( vtkTable*,
97  vtkTable* ) override;
98 
102  void Assess( vtkTable*,
104  vtkTable* ) override;
105 
110  virtual void CalculatePValues(vtkTable*);
111 
117  void SelectAssessFunctor( vtkTable* outData,
118  vtkDataObject* inMeta,
119  vtkStringArray* rowNames,
120  AssessFunctor*& dfunc ) override;
125  virtual void SelectAssessFunctor( vtkTable* outData,
126  vtkMultiBlockDataSet* inMeta,
127  vtkIdType pairKey,
128  vtkStringArray* rowNames,
129  AssessFunctor*& dfunc );
130 
131 private:
133  void operator=(const vtkContingencyStatistics&) = delete;
134 };
135 
136 #endif
137 
A base class for a functor that assesses data.
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
virtual void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Test option.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:347
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
dynamic, self-adjusting array of double
Base class for statistics algorithms.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
Composite dataset that organizes datasets into blocks.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.