Class Euclidean1D
java.lang.Object
org.apache.commons.math3.geometry.euclidean.oned.Euclidean1D
- All Implemented Interfaces:
Serializable, Space
This class implements a one-dimensional space.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classHolder for the instance.static classSpecialized exception for inexistent sub-space. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerializable version identifier. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the dimension of the space.static Euclidean1DGet the unique instance.Get the n-1 dimension subspace of this space.private ObjectHandle deserialization of the singleton.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
-
Constructor Details
-
Euclidean1D
private Euclidean1D()Private constructor for the singleton.
-
-
Method Details
-
getInstance
-
getDimension
public int getDimension()Get the dimension of the space.- Specified by:
getDimensionin 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:
getSubSpacein interfaceSpace- Returns:
- nothing
- Throws:
Euclidean1D.NoSubSpaceException- in all cases- See Also:
-
readResolve
Handle deserialization of the singleton.- Returns:
- the singleton instance
-