Accord.Statistics.Visualizations.Histogram.Add C# (CSharp) Method

Add() public method

Adds one histogram from the other, storing results in a new histogram, without changing the current instance.
public Add ( int histogram ) : Histogram
histogram int The histogram whose bin values will be added.
return Histogram
        public Histogram Add(int[] histogram)
        {
            Histogram clone = Clone() as Histogram;
            for (int i = 0; i < this.values.Length; i++)
                clone.values[i] += histogram[i];
            return clone;
        }

Same methods

Histogram::Add ( Histogram histogram ) : Histogram