Skip to content

An R Package containing the Spherical Branch and Bound (SBB) algorithm for computing Fréchet means for the circle and the 2-sphere equipped with the arc length as metric. Moreover, a wrapper for computing Fréchet means on more general spaces, provided corresponding branch and bound rules, is provided.

License

Notifications You must be signed in to change notification settings

jwieditz/SphericalBranchAndBound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spherical Branch And Bound Algorithms

This project includes an R package containing a branch and bound algorithm for computing Fréchet-p-means on the circle and the 2-sphere. Moreover, we provide a wrapper to easily extend this algorithm also to spheres of higher dimension. This wrapper requires as an input:

  • an initial triangulation SET of the sphere,
  • a procedure INIT which computes for a given spherical triangle its size, a lower and an upper bound of the Fréchet function on this triangle,
  • a branching rule BRANCH,
  • a rule MID to compute the midpoint of a triangle.

This repository is supplementary to Eichfelder, G., Hotz, T., Wieditz, J. (2019). An algorithm for computing Fréchet means on the sphere.

Result of SBB
An approximation for the Fréchet-2-mean of an example data set, cf. Eichfelder, G., Hotz, T., Wieditz, J. (2019). An algorithm for computing Fréchet means on the sphere., using the SBB algorithm.

The Spherical Branch and Bound (SBB) package

To use the SBB R-package follow the steps below:

  1. Install the R-package SphericalBranchAndBound via

    library(remotes)

    install_github('jwieditz/SphericalBranchAndBound/SphericalBranchAndBound').

  2. Load the library via library(SphericalBranchAndBound).

  3. For an example on the circle, run example(SBB.circle).

  4. For an example on the 2-sphere, run example(SBB.sphere).

Licence

This package is released under the GPL3.0 licence.

About

An R Package containing the Spherical Branch and Bound (SBB) algorithm for computing Fréchet means for the circle and the 2-sphere equipped with the arc length as metric. Moreover, a wrapper for computing Fréchet means on more general spaces, provided corresponding branch and bound rules, is provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages