public AugmentedDickeyFuller(double[] ts){
  this.ts=ts;
  this.lag=(int)Math.floor(Math.cbrt((ts.length - 1)));
  computeADFStatistics();
}

public AugmentedDickeyFuller ( double [ ] ts ) { this . ts = ts ; this . lag = ( int ) Math . floor ( Math . cbrt ( ( ts . length - 1 ) ) ) ; computeADFStatistics ( ) ; }
uses the augmented dickey fuller test to determine if ts is a stationary time series
