|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmethods.scores.bootstrap.PurificationBootstrapSamples
public class PurificationBootstrapSamples
Represents a set of bootstrap samples of a purification data set. To construct such a bootstrap sample, random purification experiments are drawn from the original data set with replacement to generate a new dataset having the same number of experiments.
Constructor Summary | |
---|---|
PurificationBootstrapSamples(InputStream stream)
Reads bootstrap samples from an input stream. |
|
PurificationBootstrapSamples(PurificationData data,
int numberOfSamples)
Creates a new set of bootstrap samples. |
|
PurificationBootstrapSamples(String file)
Reads bootstrap samples from a file. |
Method Summary | |
---|---|
int |
getNumberOfSamples()
Returns the number of bootstrap samples contained in this set. |
PurificationData |
getSample(int sample)
Returns a given sample from the set. |
void |
writeToFile(String outfile)
Writes the bootstrap samples contained in this set to a file. |
void |
writeToStream(OutputStream outstream)
Writes the bootstrap samples contained in this set to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurificationBootstrapSamples(String file) throws IOException
file
- file from which the samples will be read
IOException
- if the file could not be read
ProCopeException
- if the file format is invalidpublic PurificationBootstrapSamples(InputStream stream)
stream
- stream from which the samples will be read
ProCopeException
- if the file format is invalidpublic PurificationBootstrapSamples(PurificationData data, int numberOfSamples)
data
- purification data to be samplednumberOfSamples
- number of samples to be createdMethod Detail |
---|
public int getNumberOfSamples()
public PurificationData getSample(int sample)
sample
- sample to be returned (1-based)
public void writeToFile(String outfile) throws IOException
outfile
- output file
IOException
- if the file could not be writtenpublic void writeToStream(OutputStream outstream)
outstream
- output stream the samples will be written to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |