Go to the documentation of this file.
62 #ifndef vtkStatisticsAlgorithm_h
63 #define vtkStatisticsAlgorithm_h
65 #include "vtkFiltersStatisticsModule.h"
135 vtkSetMacro( LearnOption,
bool );
136 vtkGetMacro( LearnOption,
bool );
143 vtkSetMacro( DeriveOption,
bool );
144 vtkGetMacro( DeriveOption,
bool );
151 vtkSetMacro( AssessOption,
bool );
152 vtkGetMacro( AssessOption,
bool );
159 vtkSetMacro( TestOption,
bool );
160 vtkGetMacro( TestOption,
bool );
virtual void SetInputModel(vtkDataObject *model)
A convenience method for setting the input model (if one is expected or allowed).
virtual void SetLearnOptionParameters(vtkDataObject *params)
A convenience method for setting learn input parameters (if one is expected or allowed).
maintain an unordered list of data objects
A table, which contains similar-typed columns of data.
virtual void ResetRequests()
Empty the list of current requests.
An array holding vtkVariants.
virtual void SetInputModelConnection(vtkAlgorithmOutput *model)
A convenience method for setting the input model connection (if one is expected or allowed).
virtual int RequestSelectedColumns()
Use the current column status values to produce a new request for statistics to be produced when Requ...
A base class for a functor that assesses data.
Composite dataset that organizes datasets into blocks.
virtual int GetColumnForRequest(vtkIdType r, vtkIdType c, vtkStdString &columnName)
@ LEARN_PARAMETERS
Port 1 is for learn parameters (initial guesses, etc.)
@ INPUT_MODEL
Port 2 is for a priori models.
Superclass for algorithms that produce only vtkTables as output.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
void AddColumnPair(const char *namColX, const char *namColY)
Convenience method to create a request with a single column name pair (namColX, namColY) in a single ...
A atomic type representing the union of many types.
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
virtual const char * GetColumnForRequest(vtkIdType r, vtkIdType c)
Provide the name of the c-th column for the r-th request.
virtual void ResetAllColumnStates()
Set the status of each and every column in the current request to OFF (0).
vtkStringArray * AssessNames
virtual void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *)=0
Given a collection of models, calculate aggregate model.
void AddColumn(const char *namCol)
Convenience method to create a request with a single column name namCol in a single call; this is the...
virtual vtkIdType GetNumberOfColumnsForRequest(vtkIdType request)
Return the number of columns for a given request.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *, int)
A convenience implementation for generic assessment with variable number of variables.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
virtual bool SetParameter(const char *parameter, int index, vtkVariant value)
A convenience method (in particular for access from other applications) to set parameter values of Le...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkStatisticsAlgorithmPrivate * Internals
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
Proxy object to connect input/output ports.
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
vtkIdType NumberOfPrimaryTables
virtual void SetColumnStatus(const char *namCol, int status)
Add or remove a column from the current analysis request.
a vtkAbstractArray subclass for strings
virtual void SetLearnOptionParameterConnection(vtkAlgorithmOutput *params)
A convenience method for setting learn input parameters (if one is expected or allowed).
dynamic, self-adjusting array of double
InputPorts
enumeration values to specify input port types
Wrapper around std::string to keep symbols short.
Base class for statistics algorithms.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkStatisticsAlgorithm() override
general representation of visualization data
virtual void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Test option.
virtual void SetAssessNames(vtkStringArray *)
Set/get assessment names.
OutputIndices
enumeration values to specify output port types
virtual vtkIdType GetNumberOfRequests()
Return the number of requests.