|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--AFLPcore.Data
|
+--AFLPcore.SortableData
|
+--AFLPcore.Peak
This class represents a peak. A peak is a point of interest in a lane,
which theoretically should represent a fragement of a given size.
Peaks are used by the ScoreFunction to determine how to
score a lane. The peaks can be choosen by a class that extends
PeakLocate. The lane will contain a list of peaks.
PeakLocate,
Lane,
ScoreFunction| Constructor Summary | |
Peak(double location,
double height,
double area)
Creates a new peak with the specified parameters. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this peak Not implemented |
double |
getArea()
Gives the area of this peek. |
double |
getConfidence()
Gives the confidence associated with this peak. |
double |
getHeight()
Gives the height of the peak. |
double |
getLocation()
Gives the location of the peek in the data. |
double |
getSearchKey()
This gives the location of the peek, and is used when searching or sorting objects of this type. |
boolean |
isMarked()
Tells whether or not this peak is marked. |
void |
read(java.io.DataInputStream in)
Reads in the properties of this class from the specified input stream. |
void |
set(double location,
double height,
double area)
Changes this peak so that the location, height, and size are set to the values given. |
void |
setConfidence(double confidence)
Sets the confidence to the specified value. |
void |
setMarkedState(boolean state)
Sets the peak as specified. |
void |
write(java.io.DataOutputStream out)
Writes all of the information this class needs to store in order to be recreated. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Peak(double location,
double height,
double area)
location - the size in bp of the center (top) of the peakheight - the intensity of the trace at the peak locationarea - the area of the peak.| Method Detail |
public final double getSearchKey()
getSearchKey in class SortableDatapublic final double getLocation()
public final double getHeight()
public final double getArea()
public void set(double location,
double height,
double area)
location - the position in the trace, in bp.height - the height of the peakarea - the area of the peakpublic final double getConfidence()
public final void setConfidence(double confidence)
getConfidence for a description of
confidence.confidence - the value to set the confidence togetConfidence()public boolean isMarked()
public void setMarkedState(boolean state)
state - the value for the marked state of this peak.public java.lang.Object clone()
clone in class Data
public void read(java.io.DataInputStream in)
throws java.io.IOException
write. This
will retrieve this classes state from the input stream. All of the
current info in this class will be replaced with data from the
stream.in - the input stream with the data for the class.java.io.IOException - occurs when a problem is encountered when
reading from the stream.
public void write(java.io.DataOutputStream out)
throws java.io.IOException
read can recreate the essential properties of this
class.out - the destination to write the data to.java.io.IOException - occurs when a problem is encountered when
writing to the stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||