VTK
vtkOTKernelSmoothing.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOTKernelSmoothing.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 =========================================================================*/
22 #ifndef vtkOTKernelSmoothing_h
23 #define vtkOTKernelSmoothing_h
24 
25 #include "vtkFiltersOpenTurnsModule.h" // For export macro
26 #include "vtkOTFilter.h"
27 
28 namespace OT
29 {
30 class KernelSmoothing;
31 }
32 
33 class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
34 {
35 public:
36  static vtkOTKernelSmoothing* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetClampMacro(PointNumber, int, 1, VTK_INT_MAX);
45  vtkGetMacro(PointNumber, int);
47 
49 
53  vtkSetMacro(GaussianPDF, bool);
54  vtkGetMacro(GaussianPDF, bool);
56 
58 
62  vtkSetMacro(TriangularPDF, bool);
63  vtkGetMacro(TriangularPDF, bool);
65 
67 
71  vtkSetMacro(EpanechnikovPDF, bool);
72  vtkGetMacro(EpanechnikovPDF, bool);
74 
76 
79  vtkSetMacro(BoundaryCorrection, bool);
80  vtkGetMacro(BoundaryCorrection, bool);
82 
83 protected:
86 
90  virtual int Process(OT::Sample* input) override;
91 
92  void ComputePDF(OT::Sample* input,
93  OT::KernelSmoothing* ks,
94  double* range,
95  const char* pdfName);
96 
102 
103 private:
104  void operator=(const vtkOTKernelSmoothing&) = delete;
106 };
107 
108 #endif
static vtkTableAlgorithm * New()
#define VTK_INT_MAX
Definition: vtkType.h:159
virtual int Process(OT::Sample *input)=0
Abstract method to process openturns data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
A VTK Filter to compute Kernel Smoothing using PDF computation from openturns.
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition: vtkOTFilter.h:37
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:32