VTK  9.3.20240424
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
35VTK_ABI_NAMESPACE_BEGIN
38
39class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
53 vtkGetObjectMacro(Controller, vtkMultiProcessController);
55
60
61protected:
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
78private:
80 void operator=(const vtkPContingencyStatistics&) = delete;
81};
82
83VTK_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:108
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.
virtual void SetController(vtkMultiProcessController *)
Get/Set the multiprocess controller.
static vtkPContingencyStatistics * New()
Wrapper around std::string to keep symbols short.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:168
int vtkIdType
Definition vtkType.h:315