VTK
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 
43 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
45 
46 #include <vector> // STL Header
47 
50 
51 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics : public vtkContingencyStatistics
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
63  virtual void SetController(vtkMultiProcessController*);
64  vtkGetObjectMacro(Controller, vtkMultiProcessController);
66 
70  void Learn( vtkTable*,
71  vtkTable*,
72  vtkMultiBlockDataSet* ) override;
73 
74 protected:
76  ~vtkPContingencyStatistics() override;
77 
81  bool Reduce( vtkIdType&,
82  char*,
83  vtkStdString&,
84  vtkIdType&,
85  vtkIdType*,
86  std::vector<vtkIdType>& );
87 
91  bool Broadcast( vtkIdType,
92  vtkStdString&,
93  std::vector<vtkStdString>&,
94  vtkIdType,
95  std::vector<vtkIdType>&,
96  vtkIdType );
97 
99 private:
101  void operator=(const vtkPContingencyStatistics&) = delete;
102 };
103 
104 #endif
105 
vtkContingencyStatistics.h
vtkPContingencyStatistics::Controller
vtkMultiProcessController * Controller
Definition: vtkPContingencyStatistics.h:98
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkContingencyStatistics::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContingencyStatistics::Learn
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
vtkContingencyStatistics::New
static vtkContingencyStatistics * New()
vtkContingencyStatistics
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
Definition: vtkContingencyStatistics.h:56
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
vtkPContingencyStatistics
A class for parallel bivariate contingency statistics.
Definition: vtkPContingencyStatistics.h:51