#include <vtkContingencyStatistics.h>
Given a pair of columns of interest, this class provides the following functionalities, depending on the execution mode it is executed in: Learn: calculate contigency tables and corresponding discrete bivariate probability distribution. More precisely, ExecuteLearn calculates the sums; if finalize
is set to true (default), the final statistics are calculated with the function CalculateFromSums. Otherwise, only raw sums are output; this option is made for efficient parallel calculations. Note that CalculateFromSums is a static function, so that it can be used directly with no need to instantiate a vtkContingencyStatistics object. Assess: given two columns of interest with the same number of entries as input in port 0, and a corresponding bivariate probability distribution,
Definition at line 54 of file vtkContingencyStatistics.h.
Public Types | |
typedef vtkBivariateStatisticsAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SelectAssessFunctor (vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkContingencyStatistics * | SafeDownCast (vtkObject *o) |
static vtkContingencyStatistics * | New () |
Protected Member Functions | |
vtkContingencyStatistics () | |
~vtkContingencyStatistics () | |
virtual void | ExecuteLearn (vtkTable *inData, vtkDataObject *outMeta) |
virtual void | ExecuteDerive (vtkDataObject *) |
Reimplemented from vtkBivariateStatisticsAlgorithm.
Definition at line 57 of file vtkContingencyStatistics.h.
vtkContingencyStatistics::vtkContingencyStatistics | ( | ) | [protected] |
vtkContingencyStatistics::~vtkContingencyStatistics | ( | ) | [protected] |
virtual const char* vtkContingencyStatistics::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkBivariateStatisticsAlgorithm.
static int vtkContingencyStatistics::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkBivariateStatisticsAlgorithm.
virtual int vtkContingencyStatistics::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkBivariateStatisticsAlgorithm.
static vtkContingencyStatistics* vtkContingencyStatistics::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkBivariateStatisticsAlgorithm.
void vtkContingencyStatistics::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 vtkBivariateStatisticsAlgorithm.
static vtkContingencyStatistics* vtkContingencyStatistics::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTableAlgorithm.
virtual void vtkContingencyStatistics::SelectAssessFunctor | ( | vtkTable * | outData, | |
vtkDataObject * | inMeta, | |||
vtkStringArray * | rowNames, | |||
AssessFunctor *& | dfunc | |||
) | [virtual] |
Provide the appropriate assessment functor.
Implements vtkStatisticsAlgorithm.
virtual void vtkContingencyStatistics::ExecuteLearn | ( | vtkTable * | inData, | |
vtkDataObject * | outMeta | |||
) | [protected, virtual] |
Execute the calculations required by the Learn option.
Implements vtkStatisticsAlgorithm.
virtual void vtkContingencyStatistics::ExecuteDerive | ( | vtkDataObject * | ) | [protected, virtual] |
Execute the calculations required by the Learn option.
Implements vtkStatisticsAlgorithm.