@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 2.16 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-number.js";import n from"./../../../../math/base/assert/is-nan.js";import i from"./entropy.js";import m from"./mean.js";import u from"./mode.js";import p from"./median.js";import f from"./stdev.js";import s from"./variance.js";import a from"./cdf.js";import c from"./mgf.js";import l from"./pdf.js";import d from"./pmf.js";import h from"./logcdf.js";import y from"./logpdf.js";import j from"./logpmf.js";import g from"./quantile.js";var b=t,v=r,w=o,q=e,E=n,M=i,T=m,V=u,x=p,k=f,z=s,A=a,B=c,C=l,D=d,F=h,G=y,H=j,I=g;function J(t){return A(t,this.mu)}function K(t){return F(t,this.mu)}function L(t){return G(t,this.mu)}function N(t){return C(t,this.mu)}function O(t){return H(t,this.mu)}function P(t){return B(t,this.mu)}function Q(t){return D(t,this.mu)}function R(t){return I(t,this.mu)}function S(){var t;if(!(this instanceof S))return 0===arguments.length?new S:new S(arguments[0]);if(arguments.length){if(!q(t=arguments[0])||E(t))throw new TypeError("invalid argument. Mean parameter `mu` must be a number. Value: `"+t+"`")}else t=0;return b(this,"mu",{configurable:!1,enumerable:!0,get:function(){return t},set:function(r){if(!q(r)||E(r))throw new TypeError("invalid value. Must be a number. Value: `"+r+"`");t=r}}),this}w(S.prototype,"entropy",(function(){return M(this.mu)})),w(S.prototype,"mean",(function(){return T(this.mu)})),w(S.prototype,"mode",(function(){return V(this.mu)})),w(S.prototype,"median",(function(){return x(this.mu)})),w(S.prototype,"stdev",(function(){return k(this.mu)})),w(S.prototype,"variance",(function(){return z(this.mu)})),v(S.prototype,"cdf",J),v(S.prototype,"logcdf",K),v(S.prototype,"logpdf",L),v(S.prototype,"logpmf",O),v(S.prototype,"mgf",P),v(S.prototype,"pdf",N),v(S.prototype,"pmf",Q),v(S.prototype,"quantile",R);var U=S;export default U;
//# sourceMappingURL=ctor.js.map