#include <vtkPOrderStatistics.h>
vtkPOrderStatistics is vtkOrderStatistics subclass for parallel datasets. It learns and derives the global statistical model on each node, but assesses each individual data points on the node that owns it.
.NOTE: It is assumed that the keys in the histogram table be contained in the set {0,...,n-1} of successive integers, where n is the number of rows of the summary table. If this requirement is not fulfilled, then the outcome of the parallel update of order tables is unpredictable but will most likely be a crash. Note that this requirement is consistent with the way histogram tables are constructed by the (serial) superclass and thus, if you are using this class as it is intended to be ran, then you do not have to worry about this requirement.
Definition at line 49 of file vtkPOrderStatistics.h.
Public Types | |
typedef vtkOrderStatistics | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetController (vtkMultiProcessController *) |
virtual vtkMultiProcessController * | GetController () |
virtual void | Learn (vtkTable *inData, vtkTable *inParameters, vtkMultiBlockDataSet *outMeta) |
Static Public Member Functions | |
static vtkPOrderStatistics * | New () |
static int | IsTypeOf (const char *type) |
static vtkPOrderStatistics * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPOrderStatistics () | |
~vtkPOrderStatistics () | |
bool | Pack (vtkTable *orderTab, vtkStdString &xPacked, vtkstd::vector< vtkIdType > &kcValues) |
bool | Reduce (vtkIdType &xSizeTotal, char *xPacked_g, vtkStdString &xPacked_l, vtkIdType &kcSizeTotal, vtkIdType *kcValues_g, vtkstd::vector< vtkIdType > &kcValues_l) |
bool | Broadcast (vtkIdType xSizeTotal, vtkStdString &xPacked, vtkstd::vector< vtkStdString > &xValues, vtkIdType kcSizeTotal, vtkstd::vector< vtkIdType > &kcValues, vtkIdType reduceProc) |
Protected Attributes | |
vtkMultiProcessController * | Controller |
vtkPOrderStatistics::vtkPOrderStatistics | ( | ) | [protected] |
vtkPOrderStatistics::~vtkPOrderStatistics | ( | ) | [protected] |
static vtkPOrderStatistics* vtkPOrderStatistics::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkOrderStatistics.
virtual const char* vtkPOrderStatistics::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkOrderStatistics.
static int vtkPOrderStatistics::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOrderStatistics.
virtual int vtkPOrderStatistics::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOrderStatistics.
static vtkPOrderStatistics* vtkPOrderStatistics::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkOrderStatistics.
void vtkPOrderStatistics::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkOrderStatistics.
virtual void vtkPOrderStatistics::SetController | ( | vtkMultiProcessController * | ) | [virtual] |
Get/Set the multiprocess controller. If no controller is set, single process is assumed.
virtual vtkMultiProcessController* vtkPOrderStatistics::GetController | ( | ) | [virtual] |
Get/Set the multiprocess controller. If no controller is set, single process is assumed.
virtual void vtkPOrderStatistics::Learn | ( | vtkTable * | inData, | |
vtkTable * | inParameters, | |||
vtkMultiBlockDataSet * | outMeta | |||
) | [virtual] |
Execute the parallel calculations required by the Learn option.
Reimplemented from vtkOrderStatistics.
bool vtkPOrderStatistics::Pack | ( | vtkTable * | orderTab, | |
vtkStdString & | xPacked, | |||
vtkstd::vector< vtkIdType > & | kcValues | |||
) | [protected] |
Pack all entries of a order table in: 1. a single string for all realizations of variables, and 2. a single vector for the corresponding keys and cardinalities
bool vtkPOrderStatistics::Reduce | ( | vtkIdType & | xSizeTotal, | |
char * | xPacked_g, | |||
vtkStdString & | xPacked_l, | |||
vtkIdType & | kcSizeTotal, | |||
vtkIdType * | kcValues_g, | |||
vtkstd::vector< vtkIdType > & | kcValues_l | |||
) | [protected] |
Reduce the collection of local order tables to the global one
bool vtkPOrderStatistics::Broadcast | ( | vtkIdType | xSizeTotal, | |
vtkStdString & | xPacked, | |||
vtkstd::vector< vtkStdString > & | xValues, | |||
vtkIdType | kcSizeTotal, | |||
vtkstd::vector< vtkIdType > & | kcValues, | |||
vtkIdType | reduceProc | |||
) | [protected] |
Broadcast reduced order table to all processes
vtkMultiProcessController* vtkPOrderStatistics::Controller [protected] |
Definition at line 105 of file vtkPOrderStatistics.h.