N-Dimensional hypersphere with a hollow internal sphere
See parent class Sphere for more information.
Examples
Create a Sphere of diameter 1 and obtain all coordinates within range for the coordinate (1,1,1).
>>> s = HollowSphere(1, 0)
>>> s((2, 1))
[(1, 1), (2, 0), (2, 2), (3, 1)]
>>> s((1, ))
[(0,), (2,)]
Methods
train(dataset) |
Initialize the Sphere
Parameters: | radius : float
inner_radius : float
include_center : bool
**kwargs :
|
---|
Methods
train(dataset) |