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=========================================================================*/
35#ifndef vtkComputeQuantiles_h
36#define vtkComputeQuantiles_h
37
38#include "vtkFiltersStatisticsModule.h" // For export macro
39#include "vtkTableAlgorithm.h"
40
41class vtkDataSet;
42class vtkDoubleArray;
43class vtkFieldData;
45class vtkTable;
46
47class VTKFILTERSSTATISTICS_EXPORT vtkComputeQuantiles : public vtkTableAlgorithm
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
59 vtkGetMacro(NumberOfIntervals, int);
60 vtkSetMacro(NumberOfIntervals, int);
62
63protected:
65 ~vtkComputeQuantiles() override = default;
66
67 int FillInputPortInformation(int port, vtkInformation* info) override;
68
69 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
70 vtkInformationVector* outputVector) override;
71
73
75
76 int FieldAssociation = -1;
77 int NumberOfIntervals = 4;
78
79private:
80 void operator=(const vtkComputeQuantiles&) = delete;
82
83 int GetInputFieldAssociation();
84 vtkFieldData* GetInputFieldData(vtkDataObject* input);
85};
86
87#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:57
dynamic, self-adjusting array of double
represent and manipulate fields of data
a simple class to control print indentation
Definition vtkIndent.h:34
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:68
int vtkIdType
Definition vtkType.h:332