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
44class vtkDataSet;
45class vtkDoubleArray;
46class vtkFieldData;
48class vtkTable;
49
50class VTKFILTERSSTATISTICS_EXPORT vtkComputeQuantiles : public vtkTableAlgorithm
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
62 vtkGetMacro(NumberOfIntervals, int);
63 vtkSetMacro(NumberOfIntervals, int);
65
66protected:
68 ~vtkComputeQuantiles() override = default;
69
70 int FillInputPortInformation(int port, vtkInformation* info) override;
71
72 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
73 vtkInformationVector* outputVector) override;
74
76
78
79 int FieldAssociation = -1;
80 int NumberOfIntervals = 4;
81
82private:
83 void operator=(const vtkComputeQuantiles&) = delete;
85
86 int GetInputFieldAssociation();
87 vtkFieldData* GetInputFieldData(vtkDataObject* input);
88};
89
90#endif
Extract Ntiles and extremum values of all columns of a table or all fields of a dataset.
static vtkComputeQuantiles * New()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void ComputeTable(vtkDataObject *, vtkTable *, vtkIdType)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkComputeQuantiles() override=default
virtual vtkOrderStatistics * CreateOrderStatisticsFilter()
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
dynamic, self-adjusting array of double
represent and manipulate fields of data
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A class for univariate order statistics.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:74
int vtkIdType
Definition vtkType.h:332