VTK  9.3.1
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 
52  virtual void SetController(vtkMultiProcessController*);
53  vtkGetObjectMacro(Controller, vtkMultiProcessController);
55 
59  void Learn(vtkTable*, vtkTable*, vtkMultiBlockDataSet*) override;
60 
61 protected:
63  ~vtkPContingencyStatistics() override;
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
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:28
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
int vtkIdType
Definition: vtkType.h:315
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
a simple class to control print indentation
Definition: vtkIndent.h:28
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:58
Composite dataset that organizes datasets into blocks.
A class for parallel bivariate contingency statistics.
Multiprocessing communication superclass.