|
|
|||||||||||||||||||||
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<BitVector> de.lmu.ifi.dbs.elki.algorithm.result.AprioriResult
public class AprioriResult
Stores a apriori result.
Field Summary | |
---|---|
private static NumberFormat |
numberFormat
Number Format for output purposes. |
private List<BitSet> |
solution
The frequent itemsets. |
private Map<BitSet,Integer> |
supports
The supports of all itemsets. |
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
db, FILE_EXTENSION |
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 | |
---|---|
AprioriResult(List<BitSet> solution,
Map<BitSet,Integer> supports,
Database<BitVector> database)
Provides a apriori result. |
Method Summary | |
---|---|
List<BitSet> |
getSolution()
Returns the frequent item sets. |
Map<BitSet,Integer> |
getSupports()
Returns the frequencies of the frequent item sets. |
void |
output(File out,
Normalization<BitVector> normalization,
List<AttributeSettings> settings)
Prints the frequent itemsets annotating their reqpective frequency. |
void |
output(PrintStream outStream,
Normalization<BitVector> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given 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 |
---|
private static final NumberFormat numberFormat
private List<BitSet> solution
private Map<BitSet,Integer> supports
Constructor Detail |
---|
public AprioriResult(List<BitSet> solution, Map<BitSet,Integer> supports, Database<BitVector> database)
solution
- the frequent itemsetssupports
- the supports of all itemsetsdatabase
- the database, where the itemsets have been evaluatedMethod Detail |
---|
public void output(File out, Normalization<BitVector> normalization, List<AttributeSettings> settings) throws UnableToComplyException
output
in interface Result<BitVector>
output
in class AbstractResult<BitVector>
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(File,Normalization,List)
public void output(PrintStream outStream, Normalization<BitVector> normalization, List<AttributeSettings> settings) throws UnableToComplyException
Result
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 normalizationResult.output(java.io.PrintStream,de.lmu.ifi.dbs.elki.normalization.Normalization,java.util.List)
public List<BitSet> getSolution()
public Map<BitSet,Integer> getSupports()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |