层次聚类中质心链接背后的直觉是什么?

时间:2019-11-04 17:14:20

标签: r linkage centroid hclust

在下面的示例代码中,如果它确实使用了质心,那么我希望它具有3个分支。实际上,两个最接近的点是A和B,距离为1

我知道Lance-Williams公式用于计算距离(https://stats.stackexchange.com/questions/217519/centroid-linkage-clustering-with-hclust-yields-wrong-dendrogram)。因此(A,B)与C之间的距离为0.5 *(sqrt(5)/ 2)+ 0.5 *(sqrt(5)/ 2)-1/4 = 0.868。但是,这是什么意思呢?与质心的联系是什么?

示例代码: `

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    certmanager.k8s.io/cluster-issuer: wordpress-staging
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
    #nginx.ingress.kubernetes.io/configuration-snippet: |
      #if ($host = 'www.test.wotnot.io' ) {
        #  rewrite ^/(.*)$ https://test.example.io/$1 permanent;
      #}
  name: wordpress-staging-ingress
spec:
  rules:
  - host: test.example.io
    http:
      paths:
      - backend:
          serviceName: wordpress-site
          servicePort: 80
        path: /
  tls:
  - hosts:
    - test.example.io
    secretName: wordpress-staging

`

0 个答案:

没有答案