public class SplitPolicyVoronoiPartitioning extends SplitPolicy
SplitPolicy.ParameterField
Modifier and Type | Field and Description |
---|---|
protected LocalAbstractObject[] |
pivots
Policy parameter pivot
|
PART_ID_ANY
Constructor and Description |
---|
SplitPolicyVoronoiPartitioning()
Creates a new instance of SplitPolicyBallPartitioning
|
Modifier and Type | Method and Description |
---|---|
int |
getPartitionsCount()
Returns the number of partitions of this policy.
|
LocalAbstractObject[] |
getPivots()
Returns the array of pivots used for the Voronoi-like partitioning.
|
int |
match(BallRegion region)
NOT IMPLEMENTED YET!!!!
|
int |
match(LocalAbstractObject object)
Returns the index of partition to which the
object belongs. |
void |
setPivots(LocalAbstractObject[] pivots)
Sets the pivots for Voronoi-like partitioning.
|
getBucketBallRegion, getParameter, getParameterNames, getParameterType, isComplete, isParameterFilled, isParameterLocked, lockParameter, match, setParameter
protected LocalAbstractObject[] pivots
public SplitPolicyVoronoiPartitioning()
public LocalAbstractObject[] getPivots()
public void setPivots(LocalAbstractObject[] pivots)
pivots
- the array of pivotspublic int match(LocalAbstractObject object)
object
belongs.match
in interface ObjectMatcher<LocalAbstractObject>
match
in class SplitPolicy
object
- an object that is tested for partitionpublic int getPartitionsCount()
getPartitionsCount
in class SplitPolicy
public int match(BallRegion region)
match(LocalAbstractObject)
method.match
in class SplitPolicy
region
- a ball region that is tested for the matching condition