public class VectorApproximation extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
approximation
approximation (va cell ids)
|
protected DBID |
id
Object represented by this approximation
|
Constructor and Description |
---|
VectorApproximation(DBID id,
int[] approximation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
byteOnDisk(int numberOfDimensions,
int numberOfPartitions)
Computes IO costs (in bytes) needed for reading the candidates.
|
int |
getApproximation(int dim)
Get the VA approximation
|
int |
getDimensionality()
Get the dimensionality
|
DBID |
getId() |
String |
toString() |
int[] approximation
protected DBID id
public VectorApproximation(DBID id, int[] approximation)
id
- Object represented (may be null
for query objects)approximation
- Approximationpublic DBID getId()
public int getDimensionality()
public int getApproximation(int dim)
dim
- Dimensionpublic static int byteOnDisk(int numberOfDimensions, int numberOfPartitions)
numberOfDimensions
- the number of relevant dimensionsnumberOfPartitions
- the number of relevant partitions