/*! For license information please see dll.225.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[225],{1551:function(e,t,a){"use strict";a.r(t),t.default=function(e,t){var a=new String(e);return a.categories=t,a}},3385:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),i=a(1),r=a.n(i),u=a(968),c=a(69),o=a(203),s=a.n(o),d=a(364),f=a.n(d),m=a(1067),g=a.n(m),p=a(204),E=a(209),v=a(206),h=a(373),R=a(1551),q=a(1839),b=a(200),C=a(966),y=["euclidean","chebyshev","cosine","hamming","manhattan"],_=["complete","single"],A=function(e){var t=e.quantitative,a=e.originalQuantitative,n=e.t;return l.a.createElement(h.default,{title:l.a.createElement("span",null,n("Hierarchical Clustering"),l.a.createElement(C.default,{title:n("Hierarchical Clustering"),content:n("Hierarchical Clustering-description")})),autoStart:!1,onGenerate:function(t,a,n,i,r){var u=l.a.createElement(q.default,{variables:t,K:n,linkage:i,distance:r,data:e.data,onResult:function(l){if(a){var i=f()(e.data,1),r=e.categorical.slice(),u=t.map((function(e){return e[0]})).join(""),c=l.getClusterAssignments(n),o=Object(R.default)("hclust_cluster_"+u,g()(0,n,1).map((function(e){return"Cluster ".concat(e+1)})));i[o]=c,s()(r,o)||r.push(o),e.onGenerate(r,i)}}});e.logAction(b.DATA_EXPLORER_HIERARCHICAL_CLUSTERING,{variables:t,attach:a,K:n,linkage:i,distance:r}),e.onCreated(u)}},l.a.createElement(p.default,{legend:n("variables"),multi:!0,defaultValue:a,options:t}),l.a.createElement(u.default,null,l.a.createElement(c.default,null,l.a.createElement(E.default,{legend:n("attach-clusters-table"),defaultValue:!1})),l.a.createElement(c.default,null,l.a.createElement(v.default,{legend:n("number-of-clusters"),min:1,inline:!0,defaultValue:3}))),l.a.createElement(u.default,null,l.a.createElement(c.default,null,l.a.createElement(p.default,{legend:"Linkage",defaultValue:_[0],options:_})),l.a.createElement(c.default,null,l.a.createElement(p.default,{legend:"Distance",defaultValue:y[0],options:y}))))};A.defaultProps={logAction:function(){}},A.propTypes={categorical:r.a.array.isRequired,quantitative:r.a.array.isRequired,originalQuantitative:r.a.array.isRequired,data:r.a.object.isRequired,logAction:r.a.func,onGenerate:r.a.func.isRequired,onCreated:r.a.func.isRequired},t.default=A},966:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),i=a(1),r=a.n(i),u=a(77),c=a(974),o=a(971),s=a(970),d=a(998),f=function(e){var t=l.a.createElement(c.default,{id:"popover-positioned-right"},l.a.createElement(o.default,null,e.title),l.a.createElement(s.default,null,e.content));return l.a.createElement(d.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:t},l.a.createElement(u.default,{size:"sm",variant:"outline-secondary",className:"question-button"},l.a.createElement("div",{className:"fa fa-question"})))};f.propTypes={content:r.a.oneOfType([r.a.string,r.a.node]).isRequired,title:r.a.string.isRequired},t.default=f}}]);