VTK  9.1.0
vtkDescriptiveStatistics.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkDescriptiveStatistics.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 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
54
56class vtkStringArray;
57class vtkTable;
58class vtkVariant;
59class vtkDoubleArray;
60
61class VTKFILTERSSTATISTICS_EXPORT vtkDescriptiveStatistics : public vtkStatisticsAlgorithm
62{
63public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
74 vtkSetMacro(UnbiasedVariance, vtkTypeBool);
75 vtkGetMacro(UnbiasedVariance, vtkTypeBool);
76 vtkBooleanMacro(UnbiasedVariance, vtkTypeBool);
78
80
85 vtkSetMacro(G1Skewness, vtkTypeBool);
86 vtkGetMacro(G1Skewness, vtkTypeBool);
87 vtkBooleanMacro(G1Skewness, vtkTypeBool);
89
91
96 vtkSetMacro(G2Kurtosis, vtkTypeBool);
97 vtkGetMacro(G2Kurtosis, vtkTypeBool);
98 vtkBooleanMacro(G2Kurtosis, vtkTypeBool);
100
102
107 vtkSetMacro(SignedDeviations, vtkTypeBool);
108 vtkGetMacro(SignedDeviations, vtkTypeBool);
109 vtkBooleanMacro(SignedDeviations, vtkTypeBool);
111
116
117protected:
120
126
131
136
140 void Assess(vtkTable* inData, vtkMultiBlockDataSet* inMeta, vtkTable* outData) override
141 {
142 this->Superclass::Assess(inData, inMeta, outData, 1);
143 }
144
150
154 void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
155 AssessFunctor*& dfunc) override;
156
161
162private:
164 void operator=(const vtkDescriptiveStatistics&) = delete;
165};
166
167#endif
maintain an unordered list of data objects
general representation of visualization data
A class for univariate descriptive statistics.
void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) override
Provide the appropriate assessment functor.
void Derive(vtkMultiBlockDataSet *) override
Execute the calculations required by the Derive option.
virtual vtkDoubleArray * CalculatePValues(vtkDoubleArray *)
Calculate p-value.
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
static vtkDescriptiveStatistics * New()
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option, given some input Data NB: input parameters are...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
~vtkDescriptiveStatistics() override
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:113
Composite dataset that organizes datasets into blocks.
A base class for a functor that assesses data.
Base class for statistics algorithms.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
A atomic type representing the union of many types.
Definition: vtkVariant.h:145
int vtkTypeBool
Definition: vtkABI.h:69