Class Euclidean1D
java.lang.Object
org.hipparchus.geometry.euclidean.oned.Euclidean1D
- All Implemented Interfaces:
Serializable
,Space
This class implements a one-dimensional space.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Specialized exception for inexistent sub-space. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the dimension of the space.static Euclidean1D
Get the unique instance.Get the n-1 dimension subspace of this space.
-
Method Details
-
getInstance
Get the unique instance.- Returns:
- the unique instance
-
getDimension
public int getDimension()Get the dimension of the space.- Specified by:
getDimension
in interfaceSpace
- Returns:
- dimension of the space
-
getSubSpace
Get the n-1 dimension subspace of this space.As the 1-dimension Euclidean space does not have proper sub-spaces, this method always throws a
Euclidean1D.NoSubSpaceException
- Specified by:
getSubSpace
in interfaceSpace
- Returns:
- nothing
- Throws:
Euclidean1D.NoSubSpaceException
- in all cases- See Also:
-