VTK  9.2.6
vtkPContingencyStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPContingencyStatistics.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 vtkPContingencyStatistics_h
44 #define vtkPContingencyStatistics_h
45 
47 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
48 
49 #include <vector> // STL Header
50 
53 
54 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
67  virtual void SetController(vtkMultiProcessController*);
68  vtkGetObjectMacro(Controller, vtkMultiProcessController);
70 
74  void Learn(vtkTable*, vtkTable*, vtkMultiBlockDataSet*) override;
75 
76 protected:
78  ~vtkPContingencyStatistics() override;
79 
83  bool Reduce(vtkIdType&, char*, vtkStdString&, vtkIdType&, vtkIdType*, std::vector<vtkIdType>&);
84 
88  bool Broadcast(vtkIdType, vtkStdString&, std::vector<vtkStdString>&, vtkIdType,
89  std::vector<vtkIdType>&, vtkIdType);
90 
92 
93 private:
95  void operator=(const vtkPContingencyStatistics&) = delete;
96 };
97 
98 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
int vtkIdType
Definition: vtkType.h:332
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiProcessController * Controller
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkContingencyStatistics * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:73
Composite dataset that organizes datasets into blocks.
A class for parallel bivariate contingency statistics.
Multiprocessing communication superclass.