public SubjectData(ISampleSubject subject, int interval, int sampleSize, SamplingOptions samplingOptions, int intervalDeviation) { Subject = subject; Interval = interval; SampleSize = sampleSize; Options = samplingOptions; IntervalDeviation = intervalDeviation; }
} = true; //space out sample requests so they don't all fall on the same 'tick' public void Add(ISampleSubject subject, int interval, int sampleSize, SamplingOptions samplingOptions = SamplingOptions.MEAN_COUNT, int intervalDeviation = -1) { if (!_subjects2data.ContainsKey(subject)) { SubjectData sd = new SubjectData(subject, interval, sampleSize, samplingOptions, intervalDeviation); _subjects2data[subject] = sd; } }