Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-02


oracle.spatial.network
Class PartitionKmeansImpl

java.lang.Object
  extended by oracle.spatial.network.PartitionKmeansImpl

All Implemented Interfaces:
Partition

public class PartitionKmeansImpl
extends java.lang.Object
implements Partition

This class offers a database implementation of k-means algorithm that partition the spatial network.


Constructor Summary
PartitionKmeansImpl(java.sql.Connection connection, java.lang.String networkName, int numPartition)
          Constructor.

 

Method Summary
 double getExternalCost()
           
 void partitionNetwork()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PartitionKmeansImpl

public PartitionKmeansImpl(java.sql.Connection connection,
                           java.lang.String networkName,
                           int numPartition)
                    throws java.sql.SQLException,
                           NetworkDataException
Constructor.
Parameters:
connection -
networkName -
numPartition -
Throws:
java.sql.SQLException
NetworkDataException

Method Detail

getExternalCost

public double getExternalCost()
Specified by:
getExternalCost in interface Partition

partitionNetwork

public void partitionNetwork()
                      throws NetworkDataException
Specified by:
partitionNetwork in interface Partition
Throws:
NetworkDataException

Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-02


Copyright © 2006, Oracle. All Rights Reserved.