VTK  9.0.3
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;
62 
68 
69 protected:
72 
77 
81  void Derive(vtkMultiBlockDataSet*) override;
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 
113 private:
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.
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.
static vtkContingencyStatistics * New()
maintain an unordered list of data objects
general representation of visualization data
Definition: vtkDataObject.h:60
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:34
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:63
A atomic type representing the union of many types.
Definition: vtkVariant.h:66
int vtkIdType
Definition: vtkType.h:338