|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.logging.AbstractLoggable de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult<ParameterizationFunction> de.lmu.ifi.dbs.elki.algorithm.result.clustering.CASHResult
public class CASHResult
TODO: comment
Field Summary | |
---|---|
static String |
CLUSTER_MARKER
Marker for a file name of a cluster. |
private SubspaceClusterMap |
clusterMap
The mapping between subspace dimensions and clusters. |
private int |
dimensionality
The dimensionality of the feature space. |
static String |
FILE_EXTENSION
Extension for txt-files. |
static String |
NOISE_MARKER
Marker for a file name of noise. |
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
db |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Fields inherited from interface de.lmu.ifi.dbs.elki.algorithm.result.Result |
---|
SEPARATOR |
Constructor Summary | |
---|---|
CASHResult(Database<ParameterizationFunction> db,
SubspaceClusterMap clusterMap,
int dimensionality)
todo |
Method Summary | |
---|---|
void |
output(File out,
Normalization<ParameterizationFunction> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given file. |
void |
output(PrintStream outStream,
Normalization<ParameterizationFunction> normalization,
List<AttributeSettings> settings)
todo Writes the clustering result to the given stream. |
private void |
write(int clusterDimensionality,
Set<Integer> clusterIDs,
LinearEquationSystem clusterDependency,
PrintStream out,
Normalization<ParameterizationFunction> normalization,
List<AttributeSettings> settings)
Writes a cluster to the designated print stream. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
getDatabase, writeHeader |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLUSTER_MARKER
public static final String NOISE_MARKER
public static final String FILE_EXTENSION
private SubspaceClusterMap clusterMap
private int dimensionality
Constructor Detail |
---|
public CASHResult(Database<ParameterizationFunction> db, SubspaceClusterMap clusterMap, int dimensionality)
db
- Method Detail |
---|
public void output(PrintStream outStream, Normalization<ParameterizationFunction> normalization, List<AttributeSettings> settings) throws UnableToComplyException
outStream
- the stream to write tonormalization
- Normalization to restore original values according to, if this action is supported
- may remain null.settings
- the settings to be written into the header, if this parameter is null
,
no header will be written
UnableToComplyException
- if any feature vector is not compatible with values initialized during normalizationpublic void output(File out, Normalization<ParameterizationFunction> normalization, List<AttributeSettings> settings) throws UnableToComplyException
Result
output
in interface Result<ParameterizationFunction>
output
in class AbstractResult<ParameterizationFunction>
out
- file, which designates the location to write the results,
or which's name designates the prefix of any locations to write the results,
or which could remain null to designate the standard-out as location for output.normalization
- Normalization to restore original values according to, if this action is supported
- may remain null.settings
- the settings to be written into the header, if this parameter is null
,
no header will be written
UnableToComplyException
- if any feature vector is not compatible with values initialized during normalizationResult.output(java.io.File, de.lmu.ifi.dbs.elki.normalization.Normalization, java.util.List)
private void write(int clusterDimensionality, Set<Integer> clusterIDs, LinearEquationSystem clusterDependency, PrintStream out, Normalization<ParameterizationFunction> normalization, List<AttributeSettings> settings) throws NonNumericFeaturesException
clusterDimensionality
- the dimensionality of the cluster to be writtenclusterIDs
- the ids belonging to the cluster to be writtenclusterDependency
- the dependencies of the clusterout
- the print stream where to writenormalization
- a Normalization to restore original values for output - may
remain nullsettings
- the settings to be written into the header
NonNumericFeaturesException
- if feature vector is not compatible with values initialized
during normalization
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |