ENH: Unit test for kernels
ENH: Unit test for kernels
Test the non-SPH kernels.
- Generate a random sphere of points with radius 1.
- Generate scalar data that is the distance from the origin.
- Generate a sphere source with radius .5
- For each point on the sphere source, interpolate the scalar data.
- Compute the mean of the interpolated data and report it. It should be close to .5.
NOTE: This UnitTest found an error in ProbabalisticVoronoKernel::ComputeWeights. highestProbability was initialized with -VTK_FLOAT_MIN rather than VTK_FLOAT_MIN.