Viskores  1.0
Classes | Static Public Member Functions | List of all members
viskores::worklet::DescriptiveStatistics Class Reference

#include <DescriptiveStatistics.h>

Classes

struct  MakeStatState
 
struct  StatState
 

Static Public Member Functions

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

Member Function Documentation

◆ Run() [1/2]

template<typename FieldType , typename Storage >
static StatState<FieldType> viskores::worklet::DescriptiveStatistics::Run ( const viskores::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 auto viskores::worklet::DescriptiveStatistics::Run ( const viskores::cont::ArrayHandle< KeyType, KeyInStorage > &  keys,
const viskores::cont::ArrayHandle< ValueType, ValueInStorage > &  values 
) -> viskores::cont::ArrayHandleZip<viskores::cont::ArrayHandle<KeyType>, viskores::cont::ArrayHandle<StatState<ValueType>>>
inlinestatic

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