Documentation of 'javanpst.data.distributions.aproximateTable.Aproximate1KeyTable' Java class
Aproximate1KeyTable
javanpst.data.distributions.aproximateTable

Class Aproximate1KeyTable



  • public class Aproximate1KeyTable
    extends java.lang.Object
    A table representation with 1 aproximated key. This table features two different indexes: a primary, integer one, and a secondary which is real valued. A maximum difference (EPSILON) is allowed in this second value
    • Constructor Summary

      Constructors 
      Constructor and Description
      Aproximate1KeyTable(int integerLenght, int realLenght)
      Builder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRow(int index, double[] keys, double[] values)
      Copy the values of a new row to the table
      void clear()
      Clears the table
      void erase(int index)
      Clears a row given an integer index
      double get(int index, double aproximate)
      Get a value, given an integer index and an approximate key
      • Methods inherited from class java.lang.Object

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

      • Aproximate1KeyTable

        public Aproximate1KeyTable(int integerLenght,
                                   int realLenght)
        Builder
        Parameters:
        integerLenght - Dimension of the integer index
        realLenght - Dimension of the real valued index
    • Method Detail

      • clear

        public void clear()
        Clears the table
      • erase

        public void erase(int index)
        Clears a row given an integer index
        Parameters:
        index - row to clear
      • addRow

        public void addRow(int index,
                           double[] keys,
                           double[] values)
        Copy the values of a new row to the table
        Parameters:
        index - row to modify
        keys - array of keys of the new row
        values - array of values of the new row
      • get

        public double get(int index,
                          double aproximate)
        Get a value, given an integer index and an approximate key
        Parameters:
        index - integer index
        aproximate -
        Returns:
        value recovered, UNDEFINED if not found any

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.