Go to the documentation of this file.
11 #ifndef vtk_m_worklet_FieldEntropy_h
12 #define vtk_m_worklet_FieldEntropy_h
48 template <
typename FreqType>
55 informationContent = 0;
63 template <
typename FieldType,
typename Storage>
71 histogram.
Run(fieldArray, numberOfBins, range, delta, binArray);
82 setBinInformationContentDispatcher.Invoke(binArray, informationContent);
95 #endif // vtk_m_worklet_FieldEntropy_h
Manages an array-worth of data.
Definition: ArrayHandle.h:283
vtkm::Float64 Run(vtkm::cont::ArrayHandle< FieldType, Storage > fieldArray, vtkm::Id numberOfBins)
Definition: FieldEntropy.h:64
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
A control signature tag for output fields.
Definition: WorkletMapField.h:60
Definition: FieldEntropy.h:34
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT vtkm::Float32 Log2(vtkm::Float32 x)
Computes the logarithm base 2 of x.
Definition: Math.h:1514
Binary Predicate that takes two arguments argument x, and y and returns sum (addition) of the two val...
Definition: BinaryOperators.h:33
Dispatcher for worklets that inherit from WorkletMapField.
Definition: DispatcherMapField.h:25
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_CONT SetBinInformationContent(vtkm::Float64 _freqSum)
Definition: FieldEntropy.h:43
VTKM_EXEC void operator()(const FreqType &freq, vtkm::Float64 &informationContent) const
Definition: FieldEntropy.h:49
void(_1, _2) ExecutionSignature
Definition: FieldEntropy.h:38
#define VTKM_CONT
Definition: ExportMacros.h:57
void Run(vtkm::cont::ArrayHandle< FieldType, Storage > fieldArray, vtkm::Id numberOfBins, vtkm::Range &rangeOfValues, FieldType &binDelta, vtkm::cont::ArrayHandle< vtkm::Id > &binArray)
Definition: FieldHistogram.h:114
static VTKM_CONT U Reduce(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, U initialValue)
Definition: Algorithm.h:656
vtkm::Float64 FreqSum
Definition: FieldEntropy.h:40
double Float64
Definition: Types.h:155
void(FieldIn freq, FieldOut informationContent) ControlSignature
Definition: FieldEntropy.h:37
Definition: FieldHistogram.h:53
Definition: FieldEntropy.h:30
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
Represent a continuous scalar range of values.
Definition: Range.h:31