VTK  9.4.20241226
vtkComputeQuantiles.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
26#ifndef vtkComputeQuantiles_h
27#define vtkComputeQuantiles_h
28
29#include "vtkFiltersStatisticsModule.h" // For export macro
30#include "vtkTableAlgorithm.h"
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkDataSet;
34class vtkDoubleArray;
35class vtkFieldData;
37class vtkTable;
38
39class VTKFILTERSSTATISTICS_EXPORT vtkComputeQuantiles : public vtkTableAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
51 vtkGetMacro(NumberOfIntervals, int);
52 vtkSetMacro(NumberOfIntervals, int);
54
55protected:
57 ~vtkComputeQuantiles() override = default;
58
59 int FillInputPortInformation(int port, vtkInformation* info) override;
60
61 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
62 vtkInformationVector* outputVector) override;
63
65
67
68 int FieldAssociation = -1;
69 int NumberOfIntervals = 4;
70
71private:
72 void operator=(const vtkComputeQuantiles&) = delete;
74
75 int GetInputFieldAssociation();
76 vtkFieldData* GetInputFieldData(vtkDataObject* input);
77};
78
79VTK_ABI_NAMESPACE_END
80#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:165
dynamic, self-adjusting array of double
represent and manipulate fields of data
a simple class to control print indentation
Definition vtkIndent.h:108
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:169
int vtkIdType
Definition vtkType.h:315