VTK  9.2.6
vtkComputeQuantiles.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkComputeQuantiles.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef vtkComputeQuantiles_h
39 #define vtkComputeQuantiles_h
40 
41 #include "vtkFiltersStatisticsModule.h" // For export macro
42 #include "vtkTableAlgorithm.h"
43 
44 class vtkDataSet;
45 class vtkDoubleArray;
46 class vtkFieldData;
47 class vtkOrderStatistics;
48 class vtkTable;
49 
50 class VTKFILTERSSTATISTICS_EXPORT vtkComputeQuantiles : public vtkTableAlgorithm
51 {
52 public:
53  static vtkComputeQuantiles* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
62  vtkGetMacro(NumberOfIntervals, int);
63  vtkSetMacro(NumberOfIntervals, int);
65 
66 protected:
68  ~vtkComputeQuantiles() override = default;
69 
71 
72  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector) override;
74 
75  void ComputeTable(vtkDataObject*, vtkTable*, vtkIdType);
76 
77  virtual vtkOrderStatistics* CreateOrderStatisticsFilter();
78 
79  int FieldAssociation = -1;
80  int NumberOfIntervals = 4;
81 
82 private:
83  void operator=(const vtkComputeQuantiles&) = delete;
85 
86  int GetInputFieldAssociation();
87  vtkFieldData* GetInputFieldData(vtkDataObject* input);
88 };
89 
90 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
A class for univariate order statistics.
int vtkIdType
Definition: vtkType.h:332
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:39
Extract Ntiles and extremum values of all columns of a table or all fields of a dataset.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:73
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:65
represent and manipulate fields of data
Definition: vtkFieldData.h:62