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  -------------------------------------------------------------------------*/
43 #ifndef vtkContingencyStatistics_h
44 #define vtkContingencyStatistics_h
45 
46 #include "vtkFiltersStatisticsModule.h" // For export macro
47 #include "vtkStatisticsAlgorithm.h"
48 
50 class vtkStringArray;
51 class vtkTable;
52 class vtkVariant;
53 class vtkIdTypeArray;
54 class vtkDoubleArray;
55 
56 class VTKFILTERSSTATISTICS_EXPORT vtkContingencyStatistics : public vtkStatisticsAlgorithm
57 {
58 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61  static vtkContingencyStatistics* New();
62 
68  vtkMultiBlockDataSet* ) override { return; };
69 
70 protected:
72  ~vtkContingencyStatistics() override;
73 
77  void Learn( vtkTable*,
78  vtkTable*,
79  vtkMultiBlockDataSet* ) override;
80 
84  void Derive( vtkMultiBlockDataSet* ) override;
85 
89  void Test( vtkTable*,
91  vtkTable* ) override;
92 
96  void Assess( vtkTable*,
98  vtkTable* ) override;
99 
104  virtual void CalculatePValues(vtkTable*);
105 
111  void SelectAssessFunctor( vtkTable* outData,
112  vtkDataObject* inMeta,
113  vtkStringArray* rowNames,
114  AssessFunctor*& dfunc ) override;
119  virtual void SelectAssessFunctor( vtkTable* outData,
120  vtkMultiBlockDataSet* inMeta,
121  vtkIdType pairKey,
122  vtkStringArray* rowNames,
123  AssessFunctor*& dfunc );
124 
125 private:
127  void operator=(const vtkContingencyStatistics&) = delete;
128 };
129 
130 #endif
131 
vtkStatisticsAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:31
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:65
vtkStatisticsAlgorithm::Learn
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
vtkContingencyStatistics::Aggregate
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
Definition: vtkContingencyStatistics.h:67
vtkStatisticsAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkStatisticsAlgorithm::Assess
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
vtkStatisticsAlgorithm::SelectAssessFunctor
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
vtkContingencyStatistics
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
Definition: vtkContingencyStatistics.h:56
vtkStatisticsAlgorithm::Derive
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:36
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkStatisticsAlgorithm
Base class for statistics algorithms.
Definition: vtkStatisticsAlgorithm.h:71
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkStatisticsAlgorithm::Test
virtual void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Test option.
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()