Class KNearestPostOffice

java.lang.Object
org.drip.spaces.big.KNearestPostOffice

public class KNearestPostOffice
extends java.lang.Object
KNearestPostOffice implements a Locator of the k Nearest Services. It provides the following Functionality:
  • KNearestPostOffice Constructor
  • Retrieve List of the Post Office Locations
  • Retrieve my Location
  • Retrieve K
  • Return the k Closest Post Offices

Module Computational Core Module
Library Statistical Learning Library
Project R1 and Rd Vector/Tensor Spaces (Validated and/or Normed), and Function Classes
Package Big-data In-place Manipulator
Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    KNearestPostOffice​(java.util.List<int[]> postOfficeLocationList, int[] myLocationCoordinateArray, int k)
    KNearestPostOffice Constructor
  • Method Summary

    Modifier and Type Method Description
    int[][] closest()
    Return the k Closest Post Offices
    int k()
    Retrieve K
    int[] myLocation()
    Retrieve my Location
    java.util.List<int[]> postOfficeLocationList()
    Retrieve List of the Post Office Locations

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KNearestPostOffice

      public KNearestPostOffice​(java.util.List<int[]> postOfficeLocationList, int[] myLocationCoordinateArray, int k) throws java.lang.Exception
      KNearestPostOffice Constructor
      Parameters:
      postOfficeLocationList - List of the Post Office Locations
      myLocationCoordinateArray - My Location Coordinate Array
      k - k
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • postOfficeLocationList

      public java.util.List<int[]> postOfficeLocationList()
      Retrieve List of the Post Office Locations
      Returns:
      List of the Post Office Locations
    • myLocation

      public int[] myLocation()
      Retrieve my Location
      Returns:
      My Location
    • k

      public int k()
      Retrieve K
      Returns:
      K
    • closest

      public int[][] closest()
      Return the k Closest Post Offices
      Returns:
      k Closest Post Offices