Skip to content

Commit

Permalink
Merge pull request #2602 from piotr1212/privatize_func
Browse files Browse the repository at this point in the history
privatize linearRegressionAnalysis so it will not show in documentation
  • Loading branch information
piotr1212 authored May 15, 2020
2 parents 879e006 + 5447d18 commit 73444c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/graphite/render/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3967,7 +3967,7 @@ def holtWintersConfidenceArea(requestContext, seriesList, delta=3, bootstrapInte
]


def linearRegressionAnalysis(series):
def _linearRegressionAnalysis(series):
"""
Returns factor and offset of linear regression function by least squares method.
"""
Expand Down Expand Up @@ -4020,7 +4020,7 @@ def linearRegression(requestContext, seriesList, startSourceAt=None, endSourceAt
int(time.mktime(sourceContext['startTime'].timetuple())),
int(time.mktime(sourceContext['endTime'].timetuple()))
)
forecast = linearRegressionAnalysis(source)
forecast = _linearRegressionAnalysis(source)
if forecast is None:
continue
factor, offset = forecast
Expand Down

0 comments on commit 73444c4

Please sign in to comment.