src/utils/filter-utils.js
function getHistogram(domain, mappedValue) {
  const histogram = histogramConstruct(domain, mappedValue, histogramBins);
  const enlargedHistogram = histogramConstruct(
    domain,
    mappedValue,
    enlargedHistogramBins
  );

  return {histogram, enlargedHistogram};
}
function getHistogram(domain, mappedValue) {
  const histogram = histogramConstruct(domain, mappedValue, histogramBins);
  const enlargedHistogram = histogramConstruct(
    domain,
    mappedValue,
    enlargedHistogramBins
  );

  return {histogram, enlargedHistogram};
}
function getHistogram ( domain , mappedValue ) { const histogram = histogramConstruct ( domain , mappedValue , histogramBins ) ; const enlargedHistogram = histogramConstruct ( domain , mappedValue , enlargedHistogramBins ) ; return { histogram , enlargedHistogram } ; }
Calculate histogram from domain and array of values

@param {number[]} domain
@param {Object[]} mappedValue
@returns {Array[]} histogram
Calculate histogram from domain and array of values