Skip to content

Commit

Permalink
remove a unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Nov 26, 2020
1 parent 17303e0 commit fc780bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Microsoft.ML.TimeSeries/SrCnnEntireAnomalyDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ public SrCnnEntireModeler(double threshold, double sensitivity, SrCnnDetectMode
_sensitivity = sensitivity;
_detectMode = detectMode;
_period = period;
// it will reduce the probability of a point detected as anomaly if its score window is too short
_predictArray = new double[_lookaheadWindowSize + 1];

switch (deseasonalityMode)
Expand Down Expand Up @@ -649,7 +648,7 @@ private double PredictNext(double[] data)
return (data[1] + slopeSum);
}

private void AverageFilter(double[] data, int n, bool ignoreFirst=false)
private void AverageFilter(double[] data, int n)
{
double cumsum = 0.0f;
int length = data.Length;
Expand Down

0 comments on commit fc780bc

Please sign in to comment.