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 2010 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  -------------------------------------------------------------------------*/
44 #ifndef __vtkOrderStatistics_h
45 #define __vtkOrderStatistics_h
46 
48 
50 class vtkStringArray;
51 class vtkTable;
52 class vtkVariant;
53 
55 {
56 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
59  static vtkOrderStatistics* New();
60 
61 //BTX
63 
65  InverseCDF = 0,
66  InverseCDFAveragedSteps = 1 // Ignored for non-numeric types
67  };
68 //ETX
70 
72 
78  vtkSetMacro( NumericType, int );
79  vtkGetMacro( NumericType, int );
80  vtkBooleanMacro( NumericType, int );
82 
84 
85  vtkSetMacro( NumberOfIntervals, vtkIdType );
86  vtkGetMacro( NumberOfIntervals, vtkIdType );
88 
90 
91  vtkSetMacro( QuantileDefinition, QuantileDefinitionType );
92  void SetQuantileDefinition ( int );
94 
96  vtkIdType GetQuantileDefinition() { return static_cast<vtkIdType>( this->QuantileDefinition ); }
97 
99 
102  virtual bool SetParameter( const char* parameter,
103  int index,
104  vtkVariant value );
106 
108 
111  vtkMultiBlockDataSet* ) { return; };
113 
114 protected:
117 
119 
120  virtual void Learn( vtkTable* inData,
121  vtkTable* inParameters,
122  vtkMultiBlockDataSet* outMeta );
124 
126  virtual void Derive( vtkMultiBlockDataSet* );
127 
129 
130  virtual void Test( vtkTable*,
132  vtkTable* );
134 
135 //BTX
137 
138  virtual void SelectAssessFunctor( vtkTable* outData,
139  vtkDataObject* inMeta,
140  vtkStringArray* rowNames,
141  AssessFunctor*& dfunc );
142 //ETX
144 
148 
149 private:
150  vtkOrderStatistics(const vtkOrderStatistics&); // Not implemented
151  void operator=(const vtkOrderStatistics&); // Not implemented
152 };
153 
154 #endif