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) VTK_OVERRIDE;
61  static vtkContingencyStatistics* New();
62 
68  vtkMultiBlockDataSet* ) VTK_OVERRIDE { return; };
69 
70 protected:
72  ~vtkContingencyStatistics() VTK_OVERRIDE;
73 
77  void Learn( vtkTable*,
78  vtkTable*,
79  vtkMultiBlockDataSet* ) VTK_OVERRIDE;
80 
84  void Derive( vtkMultiBlockDataSet* ) VTK_OVERRIDE;
85 
89  void Test( vtkTable*,
91  vtkTable* ) VTK_OVERRIDE;
92 
96  void Assess( vtkTable*,
97  vtkMultiBlockDataSet*,
98  vtkTable* ) VTK_OVERRIDE;
99 
104  virtual void CalculatePValues(vtkTable*);
105 
111  void SelectAssessFunctor( vtkTable* outData,
112  vtkDataObject* inMeta,
113  vtkStringArray* rowNames,
114  AssessFunctor*& dfunc ) VTK_OVERRIDE;
119  virtual void SelectAssessFunctor( vtkTable* outData,
120  vtkMultiBlockDataSet* inMeta,
121  vtkIdType pairKey,
122  vtkStringArray* rowNames,
123  AssessFunctor*& dfunc );
124 
125 private:
126  vtkContingencyStatistics(const vtkContingencyStatistics&) VTK_DELETE_FUNCTION;
127  void operator=(const vtkContingencyStatistics&) VTK_DELETE_FUNCTION;
128 };
129 
130 #endif
131 
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
Tests instantiations of the vtkNew class template.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:345
A atomic type representing the union of many types.
Definition: vtkVariant.h:69
dynamic, self-adjusting array of double
Base class for statistics algorithms.
a simple class to control print indentation
Definition: vtkIndent.h:33
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Composite dataset that organizes datasets into blocks.
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
general representation of visualization data
Definition: vtkDataObject.h:58
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.