class AutoRegressiveSpectrum {

    public boolean process(IReadDataBlock data, final int nar) {
        clear();
        int nlags = nar == 0 ? computeDefaultLags(data.getLength()) : nar;
        if (nlags < 0) {
            return false;
        }
        switch (method_) {
            case Durbin:
                computeDurbin(data, nlags);
                break;
            case Ols:
                computeOls(data, nlags);
        }
        return ar != null;
    }

    public  AutoRegressiveSpectrum(Method m);

}