VTK  9.3.0
vtkPContingencyStatistics.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2011 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
27 #ifndef vtkPContingencyStatistics_h
28 #define vtkPContingencyStatistics_h
29 
31 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
32 
33 #include <vector> // STL Header
34 
35 VTK_ABI_NAMESPACE_BEGIN
38 
39 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
53  vtkGetObjectMacro(Controller, vtkMultiProcessController);
55 
60 
61 protected:
64 
68  bool Reduce(vtkIdType&, char*, vtkStdString&, vtkIdType&, vtkIdType*, std::vector<vtkIdType>&);
69 
73  bool Broadcast(vtkIdType, vtkStdString&, std::vector<vtkStdString>&, vtkIdType,
74  std::vector<vtkIdType>&, vtkIdType);
75 
77 
78 private:
80  void operator=(const vtkPContingencyStatistics&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
a simple class to control print indentation
Definition: vtkIndent.h:38
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:38
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
int vtkIdType
Definition: vtkType.h:315