VTK  9.2.6
vtkOrderStatistics.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkOrderStatistics.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2011 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
42
43#ifndef vtkOrderStatistics_h
44#define vtkOrderStatistics_h
45
46#include "vtkFiltersStatisticsModule.h" // For export macro
48
50class vtkStringArray;
51class vtkTable;
52class vtkVariant;
53
54class VTKFILTERSSTATISTICS_EXPORT vtkOrderStatistics : public vtkStatisticsAlgorithm
55{
56public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
60
65 {
66 InverseCDF = 0, // Identical to method 1 of R
67 InverseCDFAveragedSteps = 1, // Identical to method 2 of R, ignored for non-numeric types
68 NearestObservation = 2 // Identical to method 3 of R
69 };
70
72
78
80
86
88
91 vtkSetMacro(Quantize, bool);
92 vtkGetMacro(Quantize, bool);
94
96
103
108
114 bool SetParameter(const char* parameter, int index, vtkVariant value) override;
115
121
123
133 vtkSetMacro(GhostsToSkip, unsigned char);
134 vtkGetMacro(GhostsToSkip, unsigned char);
136
137protected:
140
142
147
152
157
161 void Assess(vtkTable* inData, vtkMultiBlockDataSet* inMeta, vtkTable* outData) override
162 {
163 this->Superclass::Assess(inData, inMeta, outData, 1);
164 }
165
169 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
170 AssessFunctor*& dfunc) override;
171
177 unsigned char GhostsToSkip;
178
179private:
180 vtkOrderStatistics(const vtkOrderStatistics&) = delete;
181 void operator=(const vtkOrderStatistics&) = delete;
182};
183
184#endif
maintain an unordered list of data objects
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
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.
virtual void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Assess option.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition vtkTable.h:68
A atomic type representing the union of many types.
Definition vtkVariant.h:64
int vtkIdType
Definition vtkType.h:332