|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.methods.scores.bootstrap.BootstrapClusterings
public class BootstrapClusterings
Container for bootstrap MCL clustering
lists.
Contains methods to write and load these clustering collections to and from
the file system.
This class belongs to the helper classes needed for parallelizable bootstrap scores calculation.
Constructor Summary | |
---|---|
BootstrapClusterings()
Create empty clusterings list. |
|
BootstrapClusterings(String file)
Reads a clustering collection from a given file. |
|
BootstrapClusterings(String file,
boolean noRealClusterings)
Reads a clusterings collection from a given file. |
Method Summary | |
---|---|
void |
addClustering(BootstrapClustering toAdd)
Adds a clustering to this clusterings list. |
BootstrapClustering |
getClustering(int i)
Returns the clustering at a specific index |
List<BootstrapClustering> |
getClusterings()
Returns the list of clusterings contained in this collection. |
Iterator<BootstrapClustering> |
iterator()
Returns an iterator of the clusterings |
void |
writeToFile(String outfile)
Writes this clustering collection to a given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapClusterings()
public BootstrapClusterings(String file) throws IOException
file
- file from which the clusterings will be read
IOException
- if the file could not be read
ProCopeException
- if the file format is invalidpublic BootstrapClusterings(String file, boolean noRealClusterings) throws IOException
file
- file from which the clusterings will be readnoRealClusterings
- if true
then only the parameters and
efficiencies but no actual clusterings will be
loaded from the file
IOException
- if the file could not be read
ProCopeException
- if the file format is invalidMethod Detail |
---|
public void addClustering(BootstrapClustering toAdd)
toAdd
- clustering to be addedpublic List<BootstrapClustering> getClusterings()
public BootstrapClustering getClustering(int i)
i
- index of the clustering
i
public Iterator<BootstrapClustering> iterator()
iterator
in interface Iterable<BootstrapClustering>
public void writeToFile(String outfile) throws IOException
outfile
- path of the file the clusterings will be written to
IOException
- if the file could not be writtenBootstrapClusterings(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |