VTK  9.4.20241221
vtkOrderStatistics.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2011 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
33#ifndef vtkOrderStatistics_h
34#define vtkOrderStatistics_h
35
36#include "vtkFiltersStatisticsModule.h" // For export macro
38
39VTK_ABI_NAMESPACE_BEGIN
41class vtkStringArray;
42class vtkTable;
43class vtkVariant;
44
45class VTKFILTERSSTATISTICS_EXPORT vtkOrderStatistics : public vtkStatisticsAlgorithm
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
51
56 {
57 InverseCDF = 0, // Identical to method 1 of R
58 InverseCDFAveragedSteps = 1, // Identical to method 2 of R, ignored for non-numeric types
59 NearestObservation = 2 // Identical to method 3 of R
60 };
61
63
66 vtkSetMacro(NumberOfIntervals, vtkIdType);
67 vtkGetMacro(NumberOfIntervals, vtkIdType);
69
71
74 vtkSetMacro(QuantileDefinition, QuantileDefinitionType);
77
79
82 vtkSetMacro(Quantize, bool);
83 vtkGetMacro(Quantize, bool);
85
87
91 vtkSetMacro(MaximumHistogramSize, vtkIdType);
92 vtkGetMacro(MaximumHistogramSize, vtkIdType);
94
98 vtkIdType GetQuantileDefinition() { return static_cast<vtkIdType>(this->QuantileDefinition); }
99
105 bool SetParameter(const char* parameter, int index, vtkVariant value) override;
106
112
114
124 vtkSetMacro(GhostsToSkip, unsigned char);
125 vtkGetMacro(GhostsToSkip, unsigned char);
127
128protected:
131
133
138
143
148
152 void Assess(vtkTable* inData, vtkMultiBlockDataSet* inMeta, vtkTable* outData) override
153 {
154 this->Superclass::Assess(inData, inMeta, outData, 1);
155 }
156
160 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
161 AssessFunctor*& dfunc) override;
162
168 unsigned char GhostsToSkip;
169
170private:
171 vtkOrderStatistics(const vtkOrderStatistics&) = delete;
172 void operator=(const vtkOrderStatistics&) = delete;
173};
174
175VTK_ABI_NAMESPACE_END
176#endif
maintain an unordered list of data objects
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
A class for univariate order statistics.
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
bool SetParameter(const char *parameter, int index, vtkVariant value) override
A convenience method (in particular for access from other applications) to set parameter values.
vtkIdType GetQuantileDefinition()
Get the quantile definition.
void Derive(vtkMultiBlockDataSet *) override
Execute the calculations required by the Derive option.
static vtkOrderStatistics * New()
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model NB: not implemented.
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
QuantileDefinitionType
The type of quantile definition.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
QuantileDefinitionType QuantileDefinition
void SetQuantileDefinition(int)
Set the quantile definition.
~vtkOrderStatistics() override
void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) override
Provide the appropriate assessment functor.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
A base class for a functor that assesses data.
Base class for statistics algorithms.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
A type representing the union of many types.
Definition vtkVariant.h:162
int vtkIdType
Definition vtkType.h:315