Skip to content

Julia package for a smallest enclosing sphere for points in arbitrary dimensions

License

Notifications You must be signed in to change notification settings

ovainola/Miniball.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JuliaFEMLogo

Miniball.jl is a part of JuliaFEM

LicenseBuild StatusCoverage StatusIssues

Julia package for a smallest enclosing sphere for points in arbitrary dimensions. Implementation is based on the Bernd Gärtner's C++ miniball (https://www.inf.ethz.ch/personal/gaertner/miniball.html). Presented implementation is pure Julia code, does not have any depencies and has the same speed as the C++ implementation. The original C++ implementation is licensed under GNU General Public License (GPLv3), which is why this implementation also has the same license.

Some examples of the usage

julia> using Miniball

julia> ball = miniball([1.0 0.0; 0.0 1.0])

julia> ball.center
[0.5,0.5]

julia> ball.squared_radius
0.5

julia> ball = miniball([-1.0 0.0; 1.0 0.0; 0.0 1.0; 0.0 -1.0])

julia> ball.center
([0.0,0.0],1.0)

julia> ball.squared_radius
1.0

julia> ball = miniball(rand(1000000,3))

julia> ball.center
 [0.502234, 0.495934, 0.504458]

julia> ball.squared_center
0.7283212748080066

Original Miniball documentation http://www-oldurls.inf.ethz.ch/personal/gaertner/miniball.html

About

Julia package for a smallest enclosing sphere for points in arbitrary dimensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%