@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 2.2 kB
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import t from"./../../../../utils/define-property.js";import r from"./../../../../utils/define-nonenumerable-read-only-property.js";import o from"./../../../../utils/define-nonenumerable-read-only-accessor.js";import e from"./../../../../assert/is-positive-number.js";import n from"./entropy.js";import i from"./kurtosis.js";import m from"./mean.js";import a from"./median.js";import s from"./mode.js";import p from"./skewness.js";import f from"./stdev.js";import u from"./variance.js";import l from"./cdf.js";import d from"./logcdf.js";import c from"./logpdf.js";import b from"./mgf.js";import y from"./pdf.js";import h from"./quantile.js";var j=t,v=r,g=o,w=e.isPrimitive,k=n,q=i,E=m,T=a,V=s,x=p,M=f,P=u,R=l,z=d,A=c,B=b,C=y,D=h;function F(t){return R(t,this.lambda)}function G(t){return z(t,this.lambda)}function H(t){return A(t,this.lambda)}function I(t){return B(t,this.lambda)}function J(t){return C(t,this.lambda)}function K(t){return D(t,this.lambda)}function L(){var t;if(!(this instanceof L))return 0===arguments.length?new L:new L(arguments[0]);if(arguments.length){if(!w(t=arguments[0]))throw new TypeError("invalid argument. Rate parameter `lambda` must be a positive number. Value: `"+t+"`")}else t=1;return j(this,"lambda",{configurable:!1,enumerable:!0,get:function(){return t},set:function(r){if(!w(r))throw new TypeError("invalid value. Must be a positive number. Value: `"+r+"`");t=r}}),this}g(L.prototype,"entropy",(function(){return k(this.lambda)})),g(L.prototype,"kurtosis",(function(){return q(this.lambda)})),g(L.prototype,"mean",(function(){return E(this.lambda)})),g(L.prototype,"median",(function(){return T(this.lambda)})),g(L.prototype,"mode",(function(){return V(this.lambda)})),g(L.prototype,"skewness",(function(){return x(this.lambda)})),g(L.prototype,"stdev",(function(){return M(this.lambda)})),g(L.prototype,"variance",(function(){return P(this.lambda)})),v(L.prototype,"cdf",F),v(L.prototype,"logcdf",G),v(L.prototype,"logpdf",H),v(L.prototype,"mgf",I),v(L.prototype,"pdf",J),v(L.prototype,"quantile",K);var N=L;export default N;
//# sourceMappingURL=ctor.js.map