VTK
vtkOrderStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkOrderStatistics.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 =========================================================================*/
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  -------------------------------------------------------------------------*/
48 #ifndef __vtkOrderStatistics_h
49 #define __vtkOrderStatistics_h
50 
51 #include "vtkStatisticsAlgorithm.h"
52 
54 class vtkStringArray;
55 class vtkTable;
56 class vtkVariant;
57 
59 {
60 public:
62  void PrintSelf(ostream& os, vtkIndent indent);
63  static vtkOrderStatistics* New();
64 
65 //BTX
67 
69  InverseCDF = 0, // Identical to method 1 of R
70  InverseCDFAveragedSteps = 1, // Identical to method 2 of R, ignored for non-numeric types
71  NearestObservation = 2, // Identical to method 3 of R
72  };
73 //ETX
75 
77 
78  vtkSetMacro( NumberOfIntervals, vtkIdType );
79  vtkGetMacro( NumberOfIntervals, vtkIdType );
81 
83 
84  vtkSetMacro( QuantileDefinition, QuantileDefinitionType );
85  void SetQuantileDefinition ( int );
87 
89 
91  vtkSetMacro( Quantize, bool );
92  vtkGetMacro( Quantize, bool );
94 
96 
98  vtkSetMacro( MaximumHistogramSize, vtkIdType );
99  vtkGetMacro( MaximumHistogramSize, vtkIdType );
101 
103  vtkIdType GetQuantileDefinition() { return static_cast<vtkIdType>( this->QuantileDefinition ); }
104 
106 
109  virtual bool SetParameter( const char* parameter,
110  int index,
111  vtkVariant value );
113 
115 
118  vtkMultiBlockDataSet* ) { return; };
120 
121 protected:
124 
126 
127  virtual void Learn( vtkTable*,
128  vtkTable*,
131 
133  virtual void Derive( vtkMultiBlockDataSet* );
134 
136 
137  virtual void Test( vtkTable*,
139  vtkTable* );
141 
143 
144  virtual void Assess( vtkTable* inData,
145  vtkMultiBlockDataSet* inMeta,
146  vtkTable* outData )
147  { this->Superclass::Assess( inData, inMeta, outData, 1 ); }
149 
150 //BTX
152 
153  virtual void SelectAssessFunctor( vtkTable* outData,
154  vtkDataObject* inMeta,
155  vtkStringArray* rowNames,
156  AssessFunctor*& dfunc );
157 //ETX
159 
162  bool Quantize;
164 
165 private:
166  vtkOrderStatistics(const vtkOrderStatistics&); // Not implemented
167  void operator=(const vtkOrderStatistics&); // Not implemented
168 };
169 
170 #endif