| 252 | } |
| 253 | |
| 254 | vtkTable* vtkStatisticalModel::GetTable(int type, int index) |
| 255 | { |
| 256 | if (type < TableType::Learned || type > TableType::Test) |
| 257 | { |
| 258 | return nullptr; |
| 259 | } |
| 260 | auto it = this->ModelTables.find(type); |
| 261 | if (it == this->ModelTables.end()) |
| 262 | { |
| 263 | return nullptr; |
| 264 | } |
| 265 | if (index < 0 || index >= static_cast<int>(it->second.size())) |
| 266 | { |
| 267 | return nullptr; |
| 268 | } |
| 269 | return it->second[index].GetPointer(); |
| 270 | } |
| 271 | |
| 272 | std::string vtkStatisticalModel::GetTableName(int type, int index) |
| 273 | { |