org.gcube.indexmanagement.featureindexlibrary.vafile.algo
Class PointPartitioning

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.vafile.algo.PointPartitioning

public class PointPartitioning
extends Object

Computes the partitoning points in each dimention

Author:
UoA

Constructor Summary
PointPartitioning(String file, VAFileParams params)
          Creates a new instance
 
Method Summary
 void computePartitionPoints()
          Computes the partitioning points
 int getPartitionBuckets()
          Retrieves teh backets in each partition
 float[][] getPartitionPoints()
          Retrieves teh partitioning points
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointPartitioning

public PointPartitioning(String file,
                         VAFileParams params)
Creates a new instance

Parameters:
file - The file holding the vectores
params - The VAFile header params
Method Detail

getPartitionBuckets

public int getPartitionBuckets()
Retrieves teh backets in each partition

Returns:
Teh buckets

getPartitionPoints

public float[][] getPartitionPoints()
Retrieves teh partitioning points

Returns:
The points

computePartitionPoints

public void computePartitionPoints()
                            throws Exception
Computes the partitioning points

Throws:
Exception - An error


Copyright © 2013. All Rights Reserved.