Htg resample fixes
This MR has a few fixes:
- Standard deviation was bugged:
MinimumNumberOfPoints
was set to 1 instead of 2. - Entropy computation was wrong as well. It needed the new
vtkBinsAccumulator
. - Accumulators in general have a better design. They take as a parameter a lambda function of a function pointer to handle the needed computation. They are now reduced to
vtkArithmeticAccumulator
,vtkBinsAccumulator
, andvtkQuantileAccumulator
. - The median is replaced by any quantile, given an input percentile that can be a floating point.
- The user can now shallow / deep copy array measurements or accumulators.