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 =========================================================================*/
37 #ifndef __vtkPContingencyStatistics_h
38 #define __vtkPContingencyStatistics_h
39 
41 
42 //BTX
43 #include <vtkstd/vector> // STL Header
44 //ETX
45 
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
59  virtual void SetController(vtkMultiProcessController*);
60  vtkGetObjectMacro(Controller, vtkMultiProcessController);
62 
64 
65  virtual void Learn( vtkTable* inData,
66  vtkTable* inParameters,
67  vtkMultiBlockDataSet* outMeta );
69 
70 protected:
73 
74 //BTX
76 
79  bool Pack( vtkTable* contingencyTab,
80  vtkStdString& xyPacked,
81  vtkstd::vector<vtkIdType>& kcValues );
83 
85 
86  bool Reduce( vtkIdType& xySizeTotal,
87  char* xyPacked_g,
88  vtkStdString& xyPacked_l,
89  vtkIdType& kcSizeTotal,
90  vtkIdType* kcValues_g,
91  vtkstd::vector<vtkIdType>& kcValues_l );
93 
95 
96  bool Broadcast( vtkIdType xySizeTotal,
97  vtkStdString& xyPacked,
98  vtkstd::vector<vtkStdString>& xyValues,
99  vtkIdType kcSizeTotal,
100  vtkstd::vector<vtkIdType>& kcValues,
101  vtkIdType reduceProc );
102 //ETX
104 
106 private:
107  vtkPContingencyStatistics(const vtkPContingencyStatistics&); // Not implemented.
108  void operator=(const vtkPContingencyStatistics&); // Not implemented.
109 };
110 
111 #endif
112 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
virtual void Learn(vtkTable *inData, vtkTable *inParameters, vtkMultiBlockDataSet *outMeta)
A class for correlation with contigency tables.
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkMultiProcessController * Controller
static vtkContingencyStatistics * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
#define VTK_INFOVIS_EXPORT
Composite dataset that organizes datasets into blocks.
A class for parallel bivariate contingency statistics.
void PrintSelf(ostream &os, vtkIndent indent)
Multiprocessing communication superclass.