typedef enum _vsip_hist_opt { VSIP_HIST_RESET = 1, VSIP_HIST_ACCUM = 2 } vsip_hist_opt; void vsip_vhisto_f(const vsip_vview_f *src, vsip_scalar_f min_bin, vsip_scalar_f max_bin, vsip_hist_opt opt, const vsip_vview_f *hist);
This function computes the histogram of the elements in the vector view src and stores the result in the vector view hist. The histogram is computed over the range [min_bin, max_bin] with the specified binning options opt.
const vsip_vview_p* src: Pointer to the source vector view.
vsip_scalar_p min_bin: The minimum value of the histogram bins.
vsip_scalar_p max_bin: The maximum value of the histogram bins.
vsip_hist_opt opt: Options for histogram computation.
VSIP_HIST_RESET - Reset histogram and compute new
VSIP_HIST_ACCUM - Accumulate with previous
const vsip_vview_f* hist: Pointer to the destination vector view where the histogram will be stored.
vsip_vview_f *src_vector_view; vsip_scalar_f min_bin = 0.0; vsip_scalar_f max_bin = 10.0; vsip_hist_opt hist_options = VSIP_HIST_ACCUM; vsip_vview_f *hist_vector_view; // Assuming src_vector_view and hist_vector_view have been properly initialized vsip_vhisto_f(src_vector_view, min_bin, max_bin, hist_options, hist_vector_view);