lib/Sample.js
function Sample(val, timeStamp, persistObj) {
	this.min = val;
	this.max = val;
	this.sigma = new StandardDeviation(val);
	this.average = new Average(val);
	this.timeStamp = timeStamp;

	if (persistObj) {
		var that = this;

		persistObj.on('reset', function (timeStamp) {
			that.reset(timeStamp);
		});
	}
}
function Sample(val, timeStamp, persistObj) {
	this.min = val;
	this.max = val;
	this.sigma = new StandardDeviation(val);
	this.average = new Average(val);
	this.timeStamp = timeStamp;

	if (persistObj) {
		var that = this;

		persistObj.on('reset', function (timeStamp) {
			that.reset(timeStamp);
		});
	}
}
function Sample ( val , timeStamp , persistObj ) { this . min = val ; this . max = val ; this . sigma = new StandardDeviation ( val ) ; this . average = new Average ( val ) ; this . timeStamp = timeStamp ; if ( persistObj ) { var that = this ; persistObj . on ( 'reset' , function ( timeStamp ) { that . reset ( timeStamp ) ; } ) ; } }
Sample taker object constructor.

@param {Number} val This first value is used to initialise the sample.
@param {Number} timeStamp A unix time stamp (in ms).
@param {Object} persistObj If we are persisting then we don't initialise.
@constructor
@alias module:Sample
Sample taker object constructor .