VTK
vtkDescriptiveStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkDescriptiveStatistics.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  -------------------------------------------------------------------------*/
49 #ifndef vtkDescriptiveStatistics_h
50 #define vtkDescriptiveStatistics_h
51 
52 #include "vtkFiltersStatisticsModule.h" // For export macro
53 #include "vtkStatisticsAlgorithm.h"
54 
56 class vtkStringArray;
57 class vtkTable;
58 class vtkVariant;
59 class vtkDoubleArray;
60 
61 class VTKFILTERSSTATISTICS_EXPORT vtkDescriptiveStatistics : public vtkStatisticsAlgorithm
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
66  static vtkDescriptiveStatistics* New();
67 
69 
74  vtkSetMacro(UnbiasedVariance,int);
75  vtkGetMacro(UnbiasedVariance,int);
76  vtkBooleanMacro(UnbiasedVariance,int);
78 
80 
85  vtkSetMacro(G1Skewness,int);
86  vtkGetMacro(G1Skewness,int);
87  vtkBooleanMacro(G1Skewness,int);
89 
91 
96  vtkSetMacro(G2Kurtosis,int);
97  vtkGetMacro(G2Kurtosis,int);
98  vtkBooleanMacro(G2Kurtosis,int);
100 
102 
107  vtkSetMacro(SignedDeviations,int);
108  vtkGetMacro(SignedDeviations,int);
109  vtkBooleanMacro(SignedDeviations,int);
111 
116  vtkMultiBlockDataSet* ) VTK_OVERRIDE;
117 
118 protected:
120  ~vtkDescriptiveStatistics() VTK_OVERRIDE;
121 
126  void Learn( vtkTable*,
127  vtkTable*,
128  vtkMultiBlockDataSet* ) VTK_OVERRIDE;
129 
133  void Derive( vtkMultiBlockDataSet* ) VTK_OVERRIDE;
134 
138  void Test( vtkTable*,
140  vtkTable* ) VTK_OVERRIDE;
141 
145  void Assess( vtkTable* inData,
146  vtkMultiBlockDataSet* inMeta,
147  vtkTable* outData ) VTK_OVERRIDE
148  { this->Superclass::Assess( inData, inMeta, outData, 1 ); }
149 
154  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
155 
159  void SelectAssessFunctor( vtkTable* outData,
160  vtkDataObject* inMeta,
161  vtkStringArray* rowNames,
162  AssessFunctor*& dfunc ) VTK_OVERRIDE;
163 
168 
169 private:
170  vtkDescriptiveStatistics( const vtkDescriptiveStatistics& ) VTK_DELETE_FUNCTION;
171  void operator = ( const vtkDescriptiveStatistics& ) VTK_DELETE_FUNCTION;
172 };
173 
174 #endif
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
Tests instantiations of the vtkNew class template.
a vtkAbstractArray subclass for strings
A atomic type representing the union of many types.
Definition: vtkVariant.h:69
dynamic, self-adjusting array of double
Base class for statistics algorithms.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *)=0
Given a collection of models, calculate aggregate model.
A class for univariate descriptive statistics.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Composite dataset that organizes datasets into blocks.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
Definition: vtkDataObject.h:58
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.