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 =========================================================================*/
25 #ifndef vtkOTKernelSmoothing_h
26 #define vtkOTKernelSmoothing_h
27 
28 #include "vtkFiltersOpenTurnsModule.h" // For export macro
29 #include "vtkOTFilter.h"
30 
31 namespace OT
32 {
33 class KernelSmoothing;
34 }
35 
36 class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
37 {
38 public:
39  static vtkOTKernelSmoothing* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetClampMacro(PointNumber, int, 1, VTK_INT_MAX);
48  vtkGetMacro(PointNumber, int);
50 
52 
56  vtkSetMacro(GaussianPDF, bool);
57  vtkGetMacro(GaussianPDF, bool);
59 
61 
65  vtkSetMacro(TriangularPDF, bool);
66  vtkGetMacro(TriangularPDF, bool);
68 
70 
74  vtkSetMacro(EpanechnikovPDF, bool);
75  vtkGetMacro(EpanechnikovPDF, bool);
77 
79 
82  vtkSetMacro(BoundaryCorrection, bool);
83  vtkGetMacro(BoundaryCorrection, bool);
85 
86 protected:
89 
93  virtual int Process(OT::Sample* input) override;
94 
95  void ComputePDF(OT::Sample* input,
96  OT::KernelSmoothing* ks,
97  double* range,
98  const char* pdfName);
99 
105 
106 private:
107  void operator=(const vtkOTKernelSmoothing&) = delete;
109 };
110 
111 #endif
#define VTK_INT_MAX
Definition: vtkType.h:159
a simple class to control print indentation
Definition: vtkIndent.h:39
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