26#ifndef vtkStatisticalModel_h
27#define vtkStatisticalModel_h
29#include "vtkCommonDataModelModule.h"
37VTK_ABI_NAMESPACE_BEGIN
191 if (algorithmParameters.empty())
207 using TableMap = std::map<int, std::vector<vtkSmartPointer<vtkTable>>>;
a simple class to control print indentation
a base class for statistical modeling of other data
bool SetTableName(int type, int index, const std::string &name)
Set the name of the specified table (if the table exists).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Initialize() override
Restore data object to initial state.
static int GetNumberOfTableTypes()
Get the number of table types.
virtual void SetAlgorithmParameters(const char *)
Set/get a serialization of the statistical algorithm used to create the model tables in this instance...
std::map< int, std::vector< vtkSmartPointer< vtkTable > > > TableMap
void SetAlgorithmParameters(const std::string &algorithmParameters)
Set/get a serialization of the statistical algorithm used to create the model tables in this instance...
vtkTable * FindTableByName(int type, const std::string &tableName, int &index)
Find a table by its type and tableName.
int GetNumberOfTables()
Get the number of tables across all types.
static int GetTableTypeValue(const std::string &tableType)
Given a string value (a human-presentable enumerant), return a TableType enumerant integer matching i...
int GetNumberOfTables(int type)
Get the number of tables of the given type.
int GetDataObjectType() VTK_FUTURE_CONST override
Return the type of data object.
vtkTable * FindTableByName(int type, const std::string &tableName)
Find a table by its type and tableName.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
static vtkStatisticalModel * GetData(vtkInformationVector *vv, int ii=0)
Retrieve an instance of this class from an information object.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
vtkMTimeType GetMTime() override
Models are composite objects and need to check each table for MTime.
bool IsEmpty()
Return true if the model is empty (i.e., has no tables).
bool SetNumberOfTables(int type, int number)
Set the number of model tables of the given type.
bool SetTable(int type, int index, vtkTable *table, const std::string &tableName)
Set a specified table at the given type and index.
char * AlgorithmParameters
vtkTable * GetTable(int type, int index)
Get the specified table.
static vtkStatisticalModel * New()
std::string GetTableName(int type, int index)
Get the name of the specified table (if any is set).
static vtkStatisticalModel * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
~vtkStatisticalModel() override
TableType
The types of tables that a model may store.
@ Learned
Raw model data accumulated from samples.
@ Test
Information summarizing a test of model fitness.
@ Derived
Quantities dependent on learned data.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
static const char * GetTableTypeName(int tableType)
Given a numeric value (a TableType enumerant), return a human-presentable string describing it.
A table, which contains similar-typed columns of data.
vtkTypeUInt32 vtkMTimeType