|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.clustering.Common
chemaxon.clustering.NearestNeighbors
Compares two sets of objects (like compound libraries) using diversity and
dissimilarity calculations.
This class can be used from command-line or from the API.
An example for running NearestNeighbours:
ConnectionHandler ch; String selectString; ... NearestNeighbors nn=new NearestNeighbors(); nn.setInput(ch, selectString); nn.setOutput(System.out); nn.setDimensions(0); nn.setFpSize(0); nn.setIdGeneration(true); nn.setThreshold(0.1f); nn.run();
| Constructor Summary | |
NearestNeighbors()
|
|
| Method Summary | |
float |
getThreshold()
Gets the threshold value. |
static void |
main(java.lang.String[] args)
The command line version entry point. |
void |
run()
Starts processing. |
void |
setInput(ConnectionHandler conh,
java.lang.String querySQL)
Sets input as an SQL query. |
void |
setInput(java.io.File file)
Sets input as a File. |
void |
setInput(java.io.InputStream is)
Sets input as an InputStream |
void |
setInput(java.lang.String fileName)
Sets input as a file, specified by its path. |
void |
setThreshold(float threshold)
Sets the threshold value. |
| Methods inherited from class chemaxon.clustering.Common |
getDimensions, getElapsedTime, getFpSize, getIdGeneration, getStartTime, getStatStream, getWeights, isOnlyStat, isStatNeeded, setDimensions, setFpSize, setIdGeneration, setOnlyStat, setOutput, setOutput, setOutput, setOutput, setStatNeeded, setStatStream, setWeights |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NearestNeighbors()
| Method Detail |
public void setInput(ConnectionHandler conh,
java.lang.String querySQL)
throws java.sql.SQLException
conh - ConnectionHandler object opened to the databasequerySQL - an SQL SELECT statement used as data source
java.sql.SQLException
public void setInput(java.io.File file)
throws java.io.FileNotFoundException
file - the File to be used for input
java.io.FileNotFoundException
public void setInput(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - the path of File to be used for input
java.io.FileNotFoundExceptionpublic void setInput(java.io.InputStream is)
is - the InputStream to be used for inputpublic void setThreshold(float threshold)
threshold - the threshold value to be usedpublic float getThreshold()
public void run()
throws chemaxon.clustering.ClusteringException,
java.io.IOException,
java.sql.SQLException,
chemaxon.clustering.InvalidLicenseKeyException
chemaxon.clustering.ClusteringException
java.io.IOException
java.sql.SQLException
chemaxon.clustering.InvalidLicenseKeyExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||