VTK-m
2.0
|
#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 >>> |
|
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.
|
inlinestatic |