Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Ball Cover Functionality  #7

@20choudharysa

Description

@20choudharysa

Hi again,

@corybrunson, @20demkowiczbr and I have been using the BallCover and we are having difficulty understanding its functionality. We created a data set containing three points (unit distance apart) and performed three mapper constructions with three different epsilon values (0.5, 1, 1.5). We are unsure as to why with an epsilon value of 1 and 1.5, the simplicial complex obtained is a 0-simplex.

Thanks

library(simplextree)
library(Mapper)

x <- rbind(c(1,1),c(2,1),c(3,1))
f_x <- matrix(x[ ,1])

m <- MapperRef$new(X = x)$
  use_filter(filter= f_x)$
  use_cover(cover = "ball", epsilon = 0.5)$
  use_clustering_algorithm(cl = "single")$
  construct_k_skeleton(k = 1L)
m$simplicial_complex
#> Simplex Tree with (3) (0)-simplices

m <- MapperRef$new(X = x)$
  use_filter(filter= f_x)$
  use_cover(cover = "ball", epsilon = 1)$
  use_clustering_algorithm(cl = "single")$
  construct_k_skeleton(k = 1L)
m$simplicial_complex
#> Simplex Tree with (1) (0)-simplices

m <- MapperRef$new(X = x)$
  use_filter(filter= f_x)$
  use_cover(cover = "ball", epsilon = 1.5)$
  use_clustering_algorithm(cl = "single")$
  construct_k_skeleton(k = 1L)
m$simplicial_complex
#> Simplex Tree with (1) (0)-simplices

Created on 2019-08-06 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions