Viskores  1.0
NDEntropy.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_filter_density_estimate_NDEntropy_h
19 #define viskores_filter_density_estimate_NDEntropy_h
20 
21 #include <viskores/filter/Filter.h>
23 
24 namespace viskores
25 {
26 namespace filter
27 {
28 namespace density_estimate
29 {
34 class VISKORES_FILTER_DENSITY_ESTIMATE_EXPORT NDEntropy : public viskores::filter::Filter
35 {
36 public:
38  void AddFieldAndBin(const std::string& fieldName, viskores::Id numOfBins);
39 
40 private:
41  VISKORES_CONT viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& input) override;
42 
43  std::vector<viskores::Id> NumOfBins;
44  std::vector<std::string> FieldNames;
45 };
46 } // namespace density_estimate
47 } // namespace filter
48 } // namespace viskores
49 
50 #endif //viskores_filter_density_estimate_NDEntropy_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
viskores::filter::density_estimate::NDEntropy
Calculate the entropy of input N-Dims fields.
Definition: NDEntropy.h:34
viskores_filter_density_estimate_export.h
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::filter::density_estimate::NDEntropy::NumOfBins
std::vector< viskores::Id > NumOfBins
Definition: NDEntropy.h:43
viskores::filter::density_estimate::NDEntropy::FieldNames
std::vector< std::string > FieldNames
Definition: NDEntropy.h:44
Filter.h