public HistogramViewModel(SignalCache signal, int index)
 {
     MinValue = signal.Min(p => p.Y) - double.Epsilon;
     MaxValue = signal.Max(p => p.Y) + double.Epsilon;
     _lowerBound = MinValue;
     _upperBound = MaxValue;
     _buckets = 10;
     _signal = signal;
     _index = index;
     _chart = new HistogramChart(signal);
     Info = new SignalInfoViewModel(signal.Header);
     Columns = new BindableCollection<Tuple<int, Bucket>>();
     Update();
 }
 public SpectrumViewModel(SignalCache signalCache, int index)
 {
     _index = index;
     Chart = new SpectrumChart(signalCache);
     Info = new SignalInfoViewModel(signalCache.Header);
 }