P - Point type defining the embedding space.S - Point type defining the embedded subspace.public interface Embedding<P extends Point<P>,S extends Point<S>>
Subspaces are the lower-dimension subsets of a space. For example, in an n-dimension space, the subspaces are the (n-1) dimension space, the (n-2) dimension space, and so on. This interface can be used regardless of the difference in number of dimensions between the space and the target subspace. For example, a line in 3D Euclidean space can use this interface to map directly from 3D Euclidean space to 1D Euclidean space (ie, the location along the line).
| Modifier and Type | Method and Description |
|---|---|
default List<P> |
toSpace(Collection<S> pts)
Transform a collection of subspace points into space points.
|
P |
toSpace(S pt)
Transform a subspace point into a space point.
|
default List<S> |
toSubspace(Collection<P> pts)
Transform a collection of space points into subspace points.
|
S |
toSubspace(P pt)
Transform a space point into a subspace point.
|
S toSubspace(P pt)
pt - n-dimension point of the spacetoSpace(S)default List<S> toSubspace(Collection<P> pts)
pts - collection of n-dimension points to transformtoSubspace(Point)P toSpace(S pt)
pt - lower-dimension point of the subspacetoSubspace(Point)default List<P> toSpace(Collection<S> pts)
pts - collection of lower-dimension points to transformtoSpace(Point)Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.