58 const dataType *inputData,
59 const triangulationType *triangulation)
const {
69 {
"#Vertices", std::to_string(triangulation->getNumberOfVertices())},
87 size_t const nVertices = triangulation->getNumberOfVertices();
88#ifdef TTK_ENABLE_OPENMP
89#pragma omp parallel for num_threads(this->threadNumber_)
91 for(
size_t i = 0; i < nVertices; i++) {
93 outputData[i] = inputData[i];
96 size_t const nNeighbors = triangulation->getVertexNeighborNumber(i);
98 for(
size_t j = 0; j < nNeighbors; j++) {
99 triangulation->getVertexNeighbor(i, j, neighborId);
100 outputData[i] += inputData[neighborId];
104 outputData[i] /= (nNeighbors + 1);
108 this->
printMsg(
"Computing Averages",