Class Euclidean1D
- java.lang.Object
-
- org.hipparchus.geometry.euclidean.oned.Euclidean1D
-
- All Implemented Interfaces:
Serializable,Space
public class Euclidean1D extends Object implements Serializable, Space
This class implements a one-dimensional space.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEuclidean1D.NoSubSpaceExceptionSpecialized exception for inexistent sub-space.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDimension()Get the dimension of the space.static Euclidean1DgetInstance()Get the unique instance.SpacegetSubSpace()Get the n-1 dimension subspace of this space.
-
-
-
Method Detail
-
getInstance
public static Euclidean1D getInstance()
Get the unique instance.- Returns:
- the unique instance
-
getDimension
public int getDimension()
Get the dimension of the space.- Specified by:
getDimensionin interfaceSpace- Returns:
- dimension of the space
-
getSubSpace
public Space getSubSpace() throws Euclidean1D.NoSubSpaceException
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:
getSubSpacein interfaceSpace- Returns:
- nothing
- Throws:
Euclidean1D.NoSubSpaceException- in all cases- See Also:
Space.getDimension()
-
-