I whipped up a simple TimeSeries object in lib/statsample/tseries.rb that inherits from Vector. It implements the simple stuff: lags, diffs and an acf function. There's a test for those as well which tests the values from the TimeSeries object against what R gives for the same data.
I whipped up a simple TimeSeries object in lib/statsample/tseries.rb that inherits from Vector. It implements the simple stuff: lags, diffs and an acf function. There's a test for those as well which tests the values from the TimeSeries object against what R gives for the same data.