private protected override double ComputeRawAnomalyScore(ref Single input, FixedSizeQueue <Single> windowedBuffer, long iteration)
                {
                    // Get the prediction for the next point opn the series
                    Single expectedValue = 0;

                    _model.PredictNext(ref expectedValue);

                    if (PreviousPosition == -1)
                    {
                        // Feed the current point to the model
                        _model.Consume(ref input, _parentAnomalyDetector.IsAdaptive);
                    }

                    // Return the error as the raw anomaly score
                    return(_parentAnomalyDetector.ErrorFunc(input, expectedValue));
                }