VTK-m  2.0
Classes | Static Public Member Functions | List of all members
vtkm::worklet::DescriptiveStatistics Class Reference

#include <DescriptiveStatistics.h>

Classes

struct  MakeStatState
 
struct  StatState
 

Static Public Member Functions

template<typename FieldType , typename Storage >
static VTKM_CONT StatState< FieldType > Run (const vtkm::cont::ArrayHandle< FieldType, Storage > &field)
 Calculate various summary statistics for the input ArrayHandle. More...
 
template<typename KeyType , typename ValueType , typename KeyInStorage , typename ValueInStorage >
static VTKM_CONT auto Run (const vtkm::cont::ArrayHandle< KeyType, KeyInStorage > &keys, const vtkm::cont::ArrayHandle< ValueType, ValueInStorage > &values) -> vtkm::cont::ArrayHandleZip< vtkm::cont::ArrayHandle< KeyType >, vtkm::cont::ArrayHandle< StatState< ValueType >>>
 

Member Function Documentation

◆ Run() [1/2]

template<typename FieldType , typename Storage >
static VTKM_CONT StatState<FieldType> vtkm::worklet::DescriptiveStatistics::Run ( const vtkm::cont::ArrayHandle< FieldType, Storage > &  field)
inlinestatic

Calculate various summary statistics for the input ArrayHandle.

Reference: [1] Wikipeida, parallel algorithm for calculating variance http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm [2] Implementation of [1] in the Trust library https://github.com/thrust/thrust/blob/master/examples/summary_statistics.cu [3] Bennett, Janine, et al. "Numerically stable, single-pass, parallel statistics algorithms." 2009 IEEE International Conference on Cluster Computing and Workshops. IEEE, 2009.

◆ Run() [2/2]

template<typename KeyType , typename ValueType , typename KeyInStorage , typename ValueInStorage >
static VTKM_CONT auto vtkm::worklet::DescriptiveStatistics::Run ( const vtkm::cont::ArrayHandle< KeyType, KeyInStorage > &  keys,
const vtkm::cont::ArrayHandle< ValueType, ValueInStorage > &  values 
) -> vtkm::cont::ArrayHandleZip<vtkm::cont::ArrayHandle<KeyType>, vtkm::cont::ArrayHandle<StatState<ValueType>>>
inlinestatic

The documentation for this class was generated from the following file: