UNPKG

@stdlib/stats-base-dists-kumaraswamy-ctor

Version:

Kumaraswamy's double bounded distribution constructor.

6 lines (5 loc) 2.45 kB
"use strict";var h=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var f=h(function(L,m){ var p=require('@stdlib/utils-define-property/dist'),a=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),n=require('@stdlib/utils-define-nonenumerable-read-only-accessor/dist'),s=require('@stdlib/assert-is-positive-number/dist').isPrimitive,c=require('@stdlib/stats-base-dists-kumaraswamy-kurtosis/dist'),g=require('@stdlib/stats-base-dists-kumaraswamy-mean/dist'),v=require('@stdlib/stats-base-dists-kumaraswamy-mode/dist'),b=require('@stdlib/stats-base-dists-kumaraswamy-skewness/dist'),y=require('@stdlib/stats-base-dists-kumaraswamy-stdev/dist'),l=require('@stdlib/stats-base-dists-kumaraswamy-variance/dist'),d=require('@stdlib/stats-base-dists-kumaraswamy-cdf/dist'),q=require('@stdlib/stats-base-dists-kumaraswamy-logcdf/dist'),w=require('@stdlib/stats-base-dists-kumaraswamy-logpdf/dist'),k=require('@stdlib/stats-base-dists-kumaraswamy-pdf/dist'),F=require('@stdlib/stats-base-dists-kumaraswamy-quantile/dist'),u=require('@stdlib/error-tools-fmtprodmsg/dist');function P(e){return d(e,this.a,this.b)}function D(e){return q(e,this.a,this.b)}function E(e){return w(e,this.a,this.b)}function T(e){return k(e,this.a,this.b)}function V(e){return F(e,this.a,this.b)}function r(){var e,t;if(!(this instanceof r))return arguments.length===0?new r:new r(arguments[0],arguments[1]);if(arguments.length){if(e=arguments[0],t=arguments[1],!s(e))throw new TypeError(u('13F8i',e));if(!s(t))throw new TypeError(u('13F8j',t))}else e=1,t=1;return p(this,"a",{configurable:!1,enumerable:!0,get:function(){return e},set:function(i){if(!s(i))throw new TypeError(u('13F8k',i));e=i}}),p(this,"b",{configurable:!1,enumerable:!0,get:function(){return t},set:function(i){if(!s(i))throw new TypeError(u('13F8k',i));t=i}}),this;}n(r.prototype,"kurtosis",function(){return c(this.a,this.b)});n(r.prototype,"mean",function(){return g(this.a,this.b)});n(r.prototype,"mode",function(){return v(this.a,this.b)});n(r.prototype,"skewness",function(){return b(this.a,this.b)});n(r.prototype,"stdev",function(){return y(this.a,this.b)});n(r.prototype,"variance",function(){return l(this.a,this.b)});a(r.prototype,"cdf",P);a(r.prototype,"logcdf",D);a(r.prototype,"logpdf",E);a(r.prototype,"pdf",T);a(r.prototype,"quantile",V);m.exports=r });var x=f();module.exports=x; /** @license Apache-2.0 */ //# sourceMappingURL=index.js.map