VTK  9.1.20211115
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  -------------------------------------------------------------------------*/
40 #ifndef vtkPContingencyStatistics_h
41 #define vtkPContingencyStatistics_h
42 
44 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
45 
46 #include <vector> // STL Header
47 
50 
51 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
67 
72 
73 protected:
76 
80  bool Reduce(vtkIdType&, char*, vtkStdString&, vtkIdType&, vtkIdType*, std::vector<vtkIdType>&);
81 
85  bool Broadcast(vtkIdType, vtkStdString&, std::vector<vtkStdString>&, vtkIdType,
86  std::vector<vtkIdType>&, vtkIdType);
87 
89 
90 private:
92  void operator=(const vtkPContingencyStatistics&) = delete;
93 };
94 
95 #endif
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
a simple class to control print indentation
Definition: vtkIndent.h:113
Composite dataset that organizes datasets into blocks.
Multiprocessing communication superclass.
A class for parallel bivariate contingency statistics.
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the parallel calculations required by the Learn option.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool Reduce(vtkIdType &, char *, vtkStdString &, vtkIdType &, vtkIdType *, std::vector< vtkIdType > &)
Reduce the collection of local contingency tables to the global one.
~vtkPContingencyStatistics() override
vtkMultiProcessController * Controller
bool Broadcast(vtkIdType, vtkStdString &, std::vector< vtkStdString > &, vtkIdType, std::vector< vtkIdType > &, vtkIdType)
Broadcast reduced contingency table to all processes.
static vtkPContingencyStatistics * New()
virtual void SetController(vtkMultiProcessController *)
Get/Set the multiprocess controller.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:105
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
int vtkIdType
Definition: vtkType.h:332