javanpst.data.distributions.aproximateTable
Class Aproximate1KeyTable
- java.lang.Object
-
- javanpst.data.distributions.aproximateTable.Aproximate1KeyTable
-
public class Aproximate1KeyTable extends java.lang.ObjectA 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 voidaddRow(int index, double[] keys, double[] values)Copy the values of a new row to the tablevoidclear()Clears the tablevoiderase(int index)Clears a row given an integer indexdoubleget(int index, double aproximate)Get a value, given an integer index and an approximate key
-
-
-
Constructor Detail
-
Aproximate1KeyTable
public Aproximate1KeyTable(int integerLenght, int realLenght)Builder- Parameters:
integerLenght- Dimension of the integer indexrealLenght- 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 modifykeys- array of keys of the new rowvalues- 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 indexaproximate-- Returns:
- value recovered, UNDEFINED if not found any
-
-
DMelt 3.0 © DataMelt by jWork.ORG