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  -------------------------------------------------------------------------*/
43 #ifndef vtkPContingencyStatistics_h
44 #define vtkPContingencyStatistics_h
45 
46 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
48 
49 #include <vector> // STL Header
50 
53 
54 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPContingencyStatistics : public vtkContingencyStatistics
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
67  vtkGetObjectMacro(Controller, vtkMultiProcessController);
69 
73  virtual void Learn( vtkTable*,
74  vtkTable*,
76 
77 protected:
80 
84  bool Reduce( vtkIdType&,
85  char*,
86  vtkStdString&,
87  vtkIdType&,
88  vtkIdType*,
89  std::vector<vtkIdType>& );
90 
95  vtkStdString&,
96  std::vector<vtkStdString>&,
97  vtkIdType,
98  std::vector<vtkIdType>&,
99  vtkIdType );
100 
102 private:
103  vtkPContingencyStatistics(const vtkPContingencyStatistics&) VTK_DELETE_FUNCTION;
104  void operator=(const vtkPContingencyStatistics&) VTK_DELETE_FUNCTION;
105 };
106 
107 #endif
108 
vtkContingencyStatistics.h
vtkPContingencyStatistics::Controller
vtkMultiProcessController * Controller
Definition: vtkPContingencyStatistics.h:101
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkPContingencyStatistics::Reduce
bool Reduce(vtkIdType &, char *, vtkStdString &, vtkIdType &, vtkIdType *, std::vector< vtkIdType > &)
Reduce the collection of local contingency tables to the global one.
vtkPContingencyStatistics::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:52
vtkPContingencyStatistics::~vtkPContingencyStatistics
~vtkPContingencyStatistics()
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:83
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPContingencyStatistics::Broadcast
bool Broadcast(vtkIdType, vtkStdString &, std::vector< vtkStdString > &, vtkIdType, std::vector< vtkIdType > &, vtkIdType)
Broadcast reduced contingency table to all processes.
vtkPContingencyStatistics::Learn
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)
Execute the parallel calculations required by the Learn option.
vtkContingencyStatistics
A class for bivariate correlation contigency tables, conditional probabilities, and information entro...
Definition: vtkContingencyStatistics.h:63
vtkPContingencyStatistics::SetController
virtual void SetController(vtkMultiProcessController *)
Get/Set the multiprocess controller.
vtkPContingencyStatistics::New
static vtkPContingencyStatistics * New()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkPContingencyStatistics
A class for parallel bivariate contingency statistics.
Definition: vtkPContingencyStatistics.h:55
vtkPContingencyStatistics::vtkPContingencyStatistics
vtkPContingencyStatistics()