|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.jpredictor.operator.ScoreBand
public class ScoreBand
Stores one band of scores. Is also used to process scores.
| Field Summary | |
|---|---|
private int |
count
Number of scores comprised in this band. |
private int |
end
The end of the band, e.g. |
private int |
id
The id of the band, e.g. |
private double |
maxScore
The maximum of all scores comprised in this band. |
private double |
minScore
The minimum of all scores comprised in this band. |
private int |
start
The start of the band, e.g. |
private double |
sumScore
The sum over all scores comprised in this band. |
| Constructor Summary | |
|---|---|
ScoreBand(ScoredSequenceStruct sss)
Inits this band with a score on a sequence. |
|
| Method Summary | |
|---|---|
boolean |
addBand(ScoreBand sb)
Adds a whole band to this one. |
boolean |
addScore(ScoredSequenceStruct sss)
Adds a score to this band. |
int |
getCount()
Gives the number of scores previously added to the band. |
int |
getEnd()
Gives the end position of the band. |
int |
getId()
Gives the id of the band. |
double |
getMaxScore()
Gives the maximum of all scores previously added to the band. |
double |
getMeanScore()
Gives the mean of all scores previously added to the band. |
double |
getMinScore()
Gives the minimum of all scores previously added to the band. |
int |
getStart()
Gives the start position of the band. |
double |
getSumScore()
Gives the sum scores over all scores previously added to the band. |
java.lang.String |
toString()
Prints a string containing all informations stored in this band. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int id
private int start
private int end
private double minScore
private double maxScore
private int count
private double sumScore
| Constructor Detail |
|---|
public ScoreBand(ScoredSequenceStruct sss)
throws java.lang.NullPointerException
sss - The score within a sequence window to
init this band.
java.lang.NullPointerException - If the parameter is null.| Method Detail |
|---|
public boolean addScore(ScoredSequenceStruct sss)
sss - The score within a sequence window to
add to this band.
true, iff the score was added,
false otherwise.public boolean addBand(ScoreBand sb)
sb - The band that is to be added to this one.
true, iff the band was added,
false otherwise.public int getCount()
public int getEnd()
public int getId()
public double getMaxScore()
public double getMinScore()
public int getStart()
public double getSumScore()
public double getMeanScore()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||