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  -------------------------------------------------------------------------*/
55 #ifndef vtkDescriptiveStatistics_h
56 #define vtkDescriptiveStatistics_h
57 
58 #include "vtkFiltersStatisticsModule.h" // For export macro
59 #include "vtkStatisticsAlgorithm.h"
60 
62 class vtkStringArray;
63 class vtkTable;
64 class vtkVariant;
65 class vtkDoubleArray;
66 
67 class VTKFILTERSSTATISTICS_EXPORT vtkDescriptiveStatistics : public vtkStatisticsAlgorithm
68 {
69 public:
71  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
72  static vtkDescriptiveStatistics* New();
73 
75 
80  vtkSetMacro(UnbiasedVariance,int);
81  vtkGetMacro(UnbiasedVariance,int);
82  vtkBooleanMacro(UnbiasedVariance,int);
84 
86 
91  vtkSetMacro(G1Skewness,int);
92  vtkGetMacro(G1Skewness,int);
93  vtkBooleanMacro(G1Skewness,int);
95 
97 
102  vtkSetMacro(G2Kurtosis,int);
103  vtkGetMacro(G2Kurtosis,int);
104  vtkBooleanMacro(G2Kurtosis,int);
106 
108 
113  vtkSetMacro(SignedDeviations,int);
114  vtkGetMacro(SignedDeviations,int);
115  vtkBooleanMacro(SignedDeviations,int);
117 
122  vtkMultiBlockDataSet* ) VTK_OVERRIDE;
123 
124 protected:
126  ~vtkDescriptiveStatistics() VTK_OVERRIDE;
127 
132  void Learn( vtkTable*,
133  vtkTable*,
134  vtkMultiBlockDataSet* ) VTK_OVERRIDE;
135 
139  void Derive( vtkMultiBlockDataSet* ) VTK_OVERRIDE;
140 
144  void Test( vtkTable*,
146  vtkTable* ) VTK_OVERRIDE;
147 
151  void Assess( vtkTable* inData,
152  vtkMultiBlockDataSet* inMeta,
153  vtkTable* outData ) VTK_OVERRIDE
154  { this->Superclass::Assess( inData, inMeta, outData, 1 ); }
155 
160  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
161 
165  void SelectAssessFunctor( vtkTable* outData,
166  vtkDataObject* inMeta,
167  vtkStringArray* rowNames,
168  AssessFunctor*& dfunc ) VTK_OVERRIDE;
169 
174 
175 private:
176  vtkDescriptiveStatistics( const vtkDescriptiveStatistics& ) VTK_DELETE_FUNCTION;
177  void operator = ( const vtkDescriptiveStatistics& ) VTK_DELETE_FUNCTION;
178 };
179 
180 #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:75
dynamic, self-adjusting array of double
Base class for statistics algorithms.
a simple class to control print indentation
Definition: vtkIndent.h:39
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:68
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:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.