VTK
vtkHighestDensityRegionsStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkHighestDensityRegionsStatistics.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 
39 #ifndef vtkHighestDensityRegionsStatistics_h
40 #define vtkHighestDensityRegionsStatistics_h
41 
42 #include "vtkFiltersStatisticsModule.h" // For export macro
43 #include "vtkStatisticsAlgorithm.h"
44 
46 class vtkVariant;
47 
48 class VTKFILTERSSTATISTICS_EXPORT vtkHighestDensityRegionsStatistics :
50 {
51 public:
53  void PrintSelf( ostream& os, vtkIndent indent ) override;
55 
60  vtkMultiBlockDataSet*) override { return; }
61 
65  void SetSigma(double sigma);
66 
70  void SetSigmaMatrix(double s11, double s12, double s21, double s22);
71 
79  double ComputeHDR(vtkDataArray *inObservations, vtkDataArray *outDensity);
80 
88  double ComputeHDR(vtkDataArray *inObs, vtkDataArray* inPOI,
89  vtkDataArray *outDensity);
90 
91 protected:
94 
98  void Learn(vtkTable*,
99  vtkTable*,
100  vtkMultiBlockDataSet*) override;
101 
105  void Derive(vtkMultiBlockDataSet*) override;
106 
112  vtkTable*) override { return; }
113 
117  void Test(vtkTable*,
119  vtkTable*) override { return; }
120 
125  vtkDataObject*,
127  AssessFunctor*&) override { return; }
128 
130 
134  double SmoothHC1[2];
135  double SmoothHC2[2];
136  double InvSigmaC1[2];
137  double InvSigmaC2[2];
138  double Determinant;
140 
145 
146 private :
153  double ComputeSmoothGaussianKernel(int dimension, double khx, double khy);
154 
155 private:
157  void operator = (const vtkHighestDensityRegionsStatistics&) = delete;
158 };
159 
160 #endif
vtkStatisticsAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkHighestDensityRegionsStatistics::SelectAssessFunctor
void SelectAssessFunctor(vtkTable *, vtkDataObject *, vtkStringArray *, AssessFunctor *&) override
Provide the appropriate assessment functor.
Definition: vtkHighestDensityRegionsStatistics.h:124
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:31
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkHighestDensityRegionsStatistics::Test
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
Definition: vtkHighestDensityRegionsStatistics.h:117
vtkHighestDensityRegionsStatistics
Compute a random vector of density f from input observations points. f is computed using a smooth ker...
Definition: vtkHighestDensityRegionsStatistics.h:48
vtkStatisticsAlgorithm::AssessFunctor
A base class for a functor that assesses data.
Definition: vtkStatisticsAlgorithm.h:177
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkHighestDensityRegionsStatistics::NumberOfRequestedColumnsPair
vtkIdType NumberOfRequestedColumnsPair
Store the number of requested columns pair computed by learn method.
Definition: vtkHighestDensityRegionsStatistics.h:144
vtkHighestDensityRegionsStatistics::Assess
void Assess(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Assess option.
Definition: vtkHighestDensityRegionsStatistics.h:110
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:65
vtkStatisticsAlgorithm::Learn
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
vtkStatisticsAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHighestDensityRegionsStatistics::Determinant
double Determinant
Definition: vtkHighestDensityRegionsStatistics.h:138
vtkStatisticsAlgorithm::Derive
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:36
vtkStatisticsAlgorithm
Base class for statistics algorithms.
Definition: vtkStatisticsAlgorithm.h:71
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkHighestDensityRegionsStatistics::Aggregate
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model.
Definition: vtkHighestDensityRegionsStatistics.h:59
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()