/*
  Highcharts JS v6.1.3 (2018-09-12)

 (c) 2010-2017 Highsoft AS
 Author: Sebastian Domas

 License: www.highcharts.com/license
*/
(function(c){"object"===typeof module&&module.exports?module.exports=c:"function"===typeof define&&define.amd?define(function(){return c}):c(Highcharts)})(function(c){var t=function(a){var c=a.each,f=a.Series,e=a.addEvent;return{init:function(){f.prototype.init.apply(this,arguments);this.initialised=!1;this.baseSeries=null;this.eventRemovers=[];this.addEvents()},setDerivedData:a.noop,setBaseSeries:function(){var k=this.chart,a=this.options.baseSeries;this.baseSeries=a&&(k.series[a]||k.get(a))||null},
addEvents:function(){var a=this,c;c=e(this.chart,"afterLinkSeries",function(){a.setBaseSeries();a.baseSeries&&!a.initialised&&(a.setDerivedData(),a.addBaseSeriesEvents(),a.initialised=!0)});this.eventRemovers.push(c)},addBaseSeriesEvents:function(){var a=this,c,d;c=e(a.baseSeries,"updatedData",function(){a.setDerivedData()});d=e(a.baseSeries,"destroy",function(){a.baseSeries=null;a.initialised=!1});a.eventRemovers.push(c,d)},destroy:function(){c(this.eventRemovers,function(a){a()});f.prototype.destroy.apply(this,
arguments)}}}(c);(function(a,c){function f(a){return function(g){for(var b=1;a[b]<=g;)b++;return a[--b]}}var e=a.each,k=a.objectEach,l=a.seriesType,d=a.correctFloat,n=a.isNumber,r=a.arrayMax,p=a.arrayMin,b=a.merge,u=a.keys,v=a.map,h={"square-root":function(a){return Math.round(Math.sqrt(a.options.data.length))},sturges:function(a){return Math.ceil(Math.log(a.options.data.length)*Math.LOG2E)},rice:function(a){return Math.ceil(2*Math.pow(a.options.data.length,1/3))}};l("histogram","column",{binsNumber:"square-root",
binWidth:void 0,pointPadding:0,groupPadding:0,grouping:!1,pointPlacement:"between",tooltip:{headerFormat:"",pointFormat:'\x3cspan style\x3d"font-size:10px"\x3e{point.x} - {point.x2}\x3c/span\x3e\x3cbr/\x3e\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name} \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e'}},b(c,{setDerivedData:function(){var a=this.derivedData(this.baseSeries.yData,this.binsNumber(),this.options.binWidth);this.setData(a,!1)},derivedData:function(a,b,c){var g=r(a),
h=p(a),m={},q=[],l;c=this.binWidth=d(n(c)?c||1:(g-h)/b);for(b=h;b<g;b=d(b+c))m[b]=0;0!==m[h]&&(m[d(h)]=0);l=f(v(u(m).sort(),function(a){return parseFloat(a)}));e(a,function(a){a=d(l(a));m[a]++});k(m,function(a,b){q.push({x:Number(b),y:a,x2:d(Number(b)+c)})});q.sort(function(a,b){return a.x-b.x});return q},binsNumber:function(){var a=this.options.binsNumber,b=h[a]||"function"===typeof a&&a;return Math.ceil(b&&b(this.baseSeries)||(n(a)?a:h["square-root"](this.baseSeries)))}}))})(c,t);(function(a,c){function f(a){var b=
a.length;a=p(a,function(a,b){return a+b},0);return 0<b&&a/b}function e(a,c){var b=a.length;c=n(c)?c:f(a);a=p(a,function(a,b){b-=c;return a+b*b},0);return 1<b&&Math.sqrt(a/(b-1))}function k(a,c,d){a-=c;return Math.exp(-(a*a)/(2*d*d))/(d*Math.sqrt(2*Math.PI))}var l=a.seriesType,d=a.correctFloat,n=a.isNumber,r=a.merge,p=a.reduce;l("bellcurve","areaspline",{intervals:3,pointsInInterval:3,marker:{enabled:!1}},r(c,{setMean:function(){this.mean=d(f(this.baseSeries.yData))},setStandardDeviation:function(){this.standardDeviation=
d(e(this.baseSeries.yData,this.mean))},setDerivedData:function(){1<this.baseSeries.yData.length&&(this.setMean(),this.setStandardDeviation(),this.setData(this.derivedData(this.mean,this.standardDeviation),!1))},derivedData:function(a,c){var b=this.options.intervals,d=this.options.pointsInInterval,g=a-b*c,b=b*d*2+1,d=c/d,f=[],e;for(e=0;e<b;e++)f.push([g,k(g,a,c)]),g+=d;return f}}))})(c,t)});
//# sourceMappingURL=histogram-bellcurve.js.map
