text: /*! @jwalsh/stochastic - 0.2.4 */
  !function(r){function t(o){if(n[o])return n[o].exports;var e=n[o]={i:o,l:!1,exports:{}};return r[o].call(e.exports,e,e.exports,t),e.l=!0,e.exports}var n={};t.m=r,t.c=n,t.d=function(r,n,o){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},t.p="",t(t.s=0)}([function(r,t,n){window.stoch=n(1)},function(r,t,n){"use strict";function o(r){if(Array.isArray(r)){for(var t=0,n=Array(r.length);t<r.length;t++)n[t]=r[t];return n}return Array.from(r)}function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=void 0,e=void 0,a=void 0,u=void 0,i=void 0;if(a=[0],u=0,i=0,t<=0||r<=0)return a;for(;u<t;)o=Math.random(),e=-Math.log(o)/r,(u+=e)<t&&(i+=1,a.push(u));return!1===n?[i]:a}function a(r){return r.reduce(function(r,t){return t+r},0)/r.length}function u(r){var t=a(r),n=r.map(function(r){var n=r-t;return n*n}),o=a(n);return Math.sqrt(o)}function i(r,t){return p(a(r),u(r),t||r.length)}function h(r,t,n,o,e,a){var u=[],i=[0];return o>0&&e>0?!1===a?[r*Math.exp((t-n*n/2)*o+n*p(0,Math.sqrt(o),1)[0])]:(i=g(t-n*n/2,n,o,e,!0),i.forEach(function(t){u.push(r*Math.exp(t))}),u):i}function f(r,t,n,o){if(!m(r))throw new Error("Invalid transMatrix");var e=parseInt(n,10),a=[];a.push(e);for(var u=r[e],i=void 0,h=0;h<t;h++){i=Math.random();for(var f=0,v=0;v<u.length;v++)(f+=u[v])>i&&(a.push(v),u=r[v],v=u.length)}return!1===o?a[a.length-1]:a}function v(r){for(var t=Math.max.apply(Math,o(r))+1,n=Array(t).fill(0),e=[],a=0;a<n.length;a++)e.push(n.slice());return r.reduce(function(r,t){return r.transMatrix[r.previous][t]++,r.previous=t,r},{transMatrix:e,previous:0}).transMatrix.map(function(r){var t=r.reduce(function(r,t){return r+t},0);return r.map(function(r){return r/t})})}function l(r,t,n,o){if(!m(r))throw new Error("Invalid transMatrix");for(var e={0:n},a=n,u=r[n],i=0,h=void 0,f=void 0,v=void 0;i<t;){for(var l=0,c=0;c<u.length;c++)l+=u[c];if(h=Math.random(),f=-Math.log(h)/l,(i+=f)>t)return!1===o?{t:a}:e;v=0,h=Math.random();for(var d=0;d<u.length;d++)(v+=u[d]/l)>h&&(u=r[d],e[i]=d,a=d,d=u.length)}return e}function c(r,t){for(var n=[],o=0;o<t;o++){var e=Math.floor(Math.random()*r.length),a=r[e];n.push(a)}return n}function d(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return-Math.log(Math.random())/r}function s(r,t){return r/Math.pow(Math.random(),1/t)}function M(r,t){for(var n=r.slice().sort(function(r,t){return r-t}),o=n[r.length-1],e=n[0],a=Math.round(Math.sqrt(r.length)),u=t||(o-e)/a,i={},h=[],f=0;f<a;f++){var v=e+f*u;h.push(v),i[v]=0}for(var l=0;l<r.length;l++)for(var c=e,d=0,s=!0;s;){if(n[l]===n[n.length-1]){i[h[h.length-1]]+=1,s=!1;break}if(n[l]<c+u){i[h[d]]+=1,s=!1;break}d+=1,c+=u}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.poissP=e,t.average=a,t.std=u,t.mock=i,t.GBM=h,t.DTMC=f,t.collate=v,t.CTMC=l,t.sample=c,t.exp=d,t.pareto=s,t.hist=M;var p=t.norm=function(){function r(r,t){return e=Math.random(),a=Math.random(),h=Math.sqrt(-2*Math.log(e))*Math.cos(2*a*Math.PI),f=Math.sqrt(-2*Math.log(e))*Math.sin(2*a*Math.PI),u=r+t*h,i=r+t*f,[u,i]}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=void 0,a=void 0,u=void 0,i=void 0,h=void 0,f=void 0,v=[];if(n<=0)return v;if(void 0===o||1===o||o%1!=0)return[r(t,n)[0]];o/2%2!=0&&v.push(r(t,n)[0]);for(var l=0;l<Math.floor(o/2);l++)v=v.concat(r(t,n));return v},g=t.brown=function(r,t,n,o,e){var a=[0],u=0,i=n/o,h=void 0;if(!(n>0&&o>0))return a;if(!1===e)return[r*n+t*p(0,Math.sqrt(n),1)[0]];for(var f=0;f<o;f++)h=r*i+t*p(0,Math.sqrt(i),1)[0],u+=h,a.push(u);return a},m=function(r){for(var t=r.length,n=0;n<t;n++){var o=0;if(r[n].length!==t)return!1;for(var e=0;e<t;e++){if(r[n][e]>1||r[n][e]<0)return!1;o+=r[n][e]}var a=4*Math.pow(10,-16);if(o<1-a||o>1+a)return!1}return!0}}]);
  //# sourceMappingURL=bundle.min.js.map