We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d4061 commit 5e6a553Copy full SHA for 5e6a553
Sources/Interaction/Widgets/PiecewiseGaussianWidget/index.js
@@ -448,12 +448,12 @@ function vtkPiecewiseGaussianWidget(publicAPI, model) {
448
while (model.histogram.length < model.numberOfBins) {
449
model.histogram.push(0);
450
}
451
- array.forEach((value) => {
+ for(let i = 0, len = array.length; i < len; i++) {
452
const idx = Math.floor(
453
- (model.numberOfBins - 1) * (Number(value) - min) / delta
+ (model.numberOfBins - 1) * (Number(array[i]) - min) / delta
454
);
455
model.histogram[idx] += 1;
456
- });
+ }
457
458
// Smart Rescale Histogram
459
const sampleSize = Math.min(
0 commit comments