VTK  9.3.20240423
vtkOTKernelSmoothing.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
13#ifndef vtkOTKernelSmoothing_h
14#define vtkOTKernelSmoothing_h
15
16#include "vtkFiltersOpenTURNSModule.h" // For export macro
17#include "vtkOTFilter.h"
18
19namespace OT
20{
21class KernelSmoothing;
22}
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
36 vtkSetClampMacro(PointNumber, int, 1, VTK_INT_MAX);
37 vtkGetMacro(PointNumber, int);
39
41
45 vtkSetMacro(GaussianPDF, bool);
46 vtkGetMacro(GaussianPDF, bool);
48
50
54 vtkSetMacro(TriangularPDF, bool);
55 vtkGetMacro(TriangularPDF, bool);
57
59
63 vtkSetMacro(EpanechnikovPDF, bool);
64 vtkGetMacro(EpanechnikovPDF, bool);
66
68
71 vtkSetMacro(BoundaryCorrection, bool);
72 vtkGetMacro(BoundaryCorrection, bool);
74
75protected:
78
82 int Process(OT::Sample* input) override;
83
84 void ComputePDF(OT::Sample* input, OT::KernelSmoothing* ks, double* range, const char* pdfName);
85
91
92private:
93 void operator=(const vtkOTKernelSmoothing&) = delete;
95};
96
97VTK_ABI_NAMESPACE_END
98#endif
a simple class to control print indentation
Definition vtkIndent.h:108
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition vtkOTFilter.h:27
A VTK Filter to compute Kernel Smoothing using PDF computation from openturns.
int Process(OT::Sample *input) override
Do the actual computation and store it in output.
void ComputePDF(OT::Sample *input, OT::KernelSmoothing *ks, double *range, const char *pdfName)
~vtkOTKernelSmoothing() override
static vtkOTKernelSmoothing * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Set of utilities for OpenTURNS<->VTK conversions.
Definition vtkOTFilter.h:21
#define VTK_INT_MAX
Definition vtkType.h:144