/*! For license information please see dll.228.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[228],{3432:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n.n(a),o=n(12),i=n.n(o),l=n(10),u=n.n(l),c=n(15),s=n.n(c),d=n(16),p=n.n(d),f=n(8),v=n.n(f),m=n(7),h=n.n(m),y=n(0),R=n.n(y),b=n(1),g=n.n(b),E=n(201),A=n.n(E),C=n(138),q=n.n(C),P=n(203),_=n(207),w=n(204),V=n(368),S=n(1836),k=n(200),D=n(991);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p()(this,n)}}var j=function(e){s()(n,e);var t=G(n);function n(e){var a;return r()(this,n),a=t.call(this,e),h()(u()(a),"compute",(function(e,t,n,r){var o=R.a.createElement(S.default,{variables:e,center:t,scale:n,noComponents:r,data:a.props.data,onResult:function(t,n){if(r>0){for(var o=q()(a.props.data,1),i=a.props.quantitative.slice(),l=e.map((function(e){return e[0]})).join(""),u=0;u<r;u++){for(var c=[],s=0;s<n.data.length;s++)c.push(n.data[s][u]);var d="PC".concat(u+1,"_").concat(l);o[d]=c,A()(i,d)||i.push(d)}a.props.onGenerate(i,o)}}});a.props.logAction(k.DATA_EXPLORER_PCA,{variables:e,center:t,scale:n}),a.props.onCreated(o)})),a}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.quantitative,n=e.originalQuantitative;return R.a.createElement(V.default,{title:R.a.createElement("span",null,"Principal Component Analysis",R.a.createElement(D.default,{title:"Principal Component Analysis",content:"Algorithm to convert observations of possibly correlated variables into linearly uncorrelated principal components."})),autoStart:!1,onGenerate:this.compute},R.a.createElement(P.default,{legend:"Variables:",multi:!0,defaultValue:n,options:t,closeMenuOnSelect:!1}),R.a.createElement(_.default,{legend:"Center values (= subtract the mean)?",defaultValue:!0}),R.a.createElement(_.default,{legend:"Scale values (= divide by standard deviation)?",defaultValue:!1}),R.a.createElement(w.default,{legend:"# of components to add to data table",min:0,defaultValue:0}))}}]),n}(y.Component);j.defaultProps={logAction:function(){}},j.propTypes={quantitative:g.a.array.isRequired,originalQuantitative:g.a.array.isRequired,data:g.a.object.isRequired,logAction:g.a.func,onGenerate:g.a.func.isRequired,onCreated:g.a.func.isRequired},t.default=j}}]);