|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.clustering.Common
public abstract class Common
Common superclass for JKlustor tools. Click here for mor information. tools.
| Constructor Summary | |
|---|---|
Common()
|
|
| Method Summary | |
|---|---|
int |
getDimensions()
Gets the number of dimensions. |
long |
getElapsedTime()
Gets the elapsed time. |
int |
getFpSize()
Gets chemical hashed fingerprint size. |
boolean |
getIdGeneration()
Indicates whether id-s will be generated or taken from input data. |
long |
getStartTime()
Gets start time. |
java.io.PrintStream |
getStatStream()
Gets the stream used to print statistics. |
float[] |
getWeights()
Gets descriptor weights used for distance calculation. |
boolean |
isOnlyStat()
Indicates if only statistics are produced. |
boolean |
isStatNeeded()
Indicates whether statistics are produced. |
void |
setDimensions(int dim)
Sets the number of dimensions. |
void |
setFpSize(int fpSize)
Sets chemical hashed fingerprint size. |
void |
setIdGeneration(boolean b)
Specifies if id-s will be generated or taken from input data. |
void |
setOnlyStat(boolean b)
Specifies if only stastistics are to be generated. |
void |
setOutput(java.sql.Connection con,
java.lang.String insertSQL)
Directs output to a database table. |
void |
setOutput(java.io.File file)
Directs output and statistics to a File. |
void |
setOutput(java.io.PrintStream ps)
Directs output to a PrintStream. |
void |
setOutput(java.lang.String fileName)
Directs output to a File. |
void |
setStatNeeded(boolean b)
Enables or disables statistics generation. |
void |
setStatStream(java.io.PrintStream pst)
Sets the stream used to print statistics. |
void |
setWeights(float[] weights)
Sets descriptor weights used for distance calculation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Common()
| Method Detail |
|---|
public void setOutput(java.sql.Connection con,
java.lang.String insertSQL)
throws java.sql.SQLException
con - Connection opened to the databaseinsertSQL - the SQL string used for inserting results into table.
See the
documentation
for details.
java.sql.SQLException
public void setOutput(java.io.File file)
throws java.io.FileNotFoundException
setStatStream()
file - the file where statistics are directed to
java.io.FileNotFoundException
public void setOutput(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - the path of the output file
java.io.FileNotFoundExceptionpublic void setOutput(java.io.PrintStream ps)
ps - the PrintStream where the output will be directed topublic void setIdGeneration(boolean b)
b - if set to true, id will be generated for each
compound.
If false, the first data column will be treated as id number.public boolean getIdGeneration()
true, if id will be generated for each compound,
false, if the first data column will be treated as id number.public void setOnlyStat(boolean b)
b - if set to true, only statistics will be producedpublic boolean isOnlyStat()
true, if only statistics are to be produced
, false otherwisepublic void setStatNeeded(boolean b)
b - true, if statistics are to be produced,
false otherwisepublic boolean isStatNeeded()
true, if statistics are to be produced,
false otherwise.public void setDimensions(int dim)
dim - the number of dimensions (floating-point descriptors)public int getDimensions()
public void setFpSize(int fpSize)
fpSize - fingerprint size in bitspublic int getFpSize()
public void setWeights(float[] weights)
weights - the weights of
the numbers' floating-point descriptorspublic float[] getWeights()
null if not
specifiedpublic long getStartTime()
public long getElapsedTime()
public void setStatStream(java.io.PrintStream pst)
pst - the PrintStream, where statistics will be directed topublic java.io.PrintStream getStatStream()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||