/* Highstock JS v9.0.1 (2021-02-15) Indicator series type for Highstock (c) 2010-2021 Kamil Kulig License: www.highcharts.com/license */ (function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/indicators/regressions",["highcharts","highcharts/modules/stock"],function(h){e(h);e.Highcharts=h;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function h(e,d,g,f){e.hasOwnProperty(d)||(e[d]=f.apply(null,g))}e=e?e._modules:{};h(e,"Stock/Indicators/LinearRegression/LinearRegression.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]], function(e,d){var g=this&&this.__extends||function(){var c=function(a,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var m in a)a.hasOwnProperty(m)&&(b[m]=a[m])};return c(a,b)};return function(a,b){function m(){this.constructor=a}c(a,b);a.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),f=e.seriesTypes.sma,h=d.isArray,k=d.extend,l=d.merge;d=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.data= void 0;b.options=void 0;b.points=void 0;return b}g(a,c);a.prototype.getRegressionLineParameters=function(b,a){var m=this.options.params.index,c=function(b,a){return h(b)?b[a]:b},d=b.reduce(function(b,a){return a+b},0),e=a.reduce(function(b,a){return c(a,m)+b},0);d/=b.length;e/=a.length;var l=0,f=0,k;for(k=0;k\u25cf{series.name}: {point.y}\u00b0
'}});return a}(f.linearRegression);k(d.prototype,{nameBase:"Linear Regression Angle Indicator"});e.registerSeriesType("linearRegressionAngle",d);"";return d});h(e,"masters/indicators/regressions.src.js",[],function(){})}); //# sourceMappingURL=regressions.js.map