Class HyperplaneSubsets


  • public final class HyperplaneSubsets
    extends java.lang.Object
    Utility methods for HyperplaneSubset implementations.
    • Constructor Detail

      • HyperplaneSubsets

        private HyperplaneSubsets()
        Utility class; no instantiation.
    • Method Detail

      • classifyAgainstEmbeddedRegion

        public static <P extends Point<P>,​S extends Point<S>,​H extends EmbeddingHyperplane<P,​S>,​R extends Region<S>> RegionLocation classifyAgainstEmbeddedRegion​(P pt,
                                                                                                                                                                                          H hyperplane,
                                                                                                                                                                                          R embeddedRegion)
        Classify a point against a region embedded in a hyperplane.
        Type Parameters:
        P - Point implementation class
        S - Subspace point implementation class
        H - Hyperplane implementation class
        R - Region implementation class
        Parameters:
        pt - the point to classify
        hyperplane - hyperplane containing the embedded region
        embeddedRegion - embedded region to classify against
        Returns:
        the region location of the given point
      • closestToEmbeddedRegion

        public static <P extends Point<P>,​S extends Point<S>,​H extends EmbeddingHyperplane<P,​S>,​R extends Region<S>> P closestToEmbeddedRegion​(P pt,
                                                                                                                                                                       H hyperplane,
                                                                                                                                                                       R embeddedRegion)
        Return the closest point to a given point in a region embedded in a hyperplane.
        Type Parameters:
        P - Point implementation class
        S - Subspace point implementation class
        H - Hyperplane implementation class
        R - Region implementation class
        Parameters:
        pt - point to find the closest point to
        hyperplane - hyperplane containing the embedded region
        embeddedRegion - embedded region to find the closest point in
        Returns:
        the closest point to pt in the embedded region