-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace vtkh stats worklet with vtkm stats
- Loading branch information
1 parent
72812b2
commit 8baa78c
Showing
7 changed files
with
105 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "vtkmStatistics.hpp" | ||
#include <vtkm/filter/density_estimate/Statistics.h> | ||
|
||
namespace vtkh | ||
{ | ||
vtkm::cont::PartitionedDataSet | ||
vtkmStatistics::Run(vtkm::cont::PartitionedDataSet &p_input, | ||
std::string field_name) | ||
{ | ||
vtkm::filter::density_estimate::Statistics stats; | ||
|
||
stats.SetActiveField(field_name); | ||
|
||
auto output = stats.Execute(p_input); | ||
//output.PrintSummary(std::cerr); | ||
return output; | ||
} | ||
|
||
} // namespace vtkh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#ifndef VTK_H_VTKM_POINT_AVERAGE_HPP | ||
#define VTK_H_VTKM_POINT_AVERAGE_HPP | ||
#ifndef VTK_H_VTKM_STATISTICS_HPP | ||
#define VTK_H_VTKM_STATISTICS_HPP | ||
|
||
#include <vtkm/cont/PartitionedDataSet.h> | ||
#include <vtkm/cont/DataSet.h> | ||
#include <vtkm/filter/density_estimation/Statistics.h> | ||
#include <vtkm/filter/density_estimate/Statistics.h> | ||
|
||
namespace vtkh | ||
{ | ||
|
||
class vtkmPointAverage | ||
class vtkmStatistics | ||
{ | ||
public: | ||
vtkm::cont::DataSet Run(vtkm::cont::DataSet &input, | ||
std::string field_name, | ||
std::string output_field_name, | ||
vtkm::filter::FieldSelection map_fields); | ||
vtkm::cont::PartitionedDataSet Run(vtkm::cont::PartitionedDataSet &p_input, | ||
std::string field_name); | ||
}; | ||
} | ||
#endif |
Oops, something went wrong.