|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.Alignment.SimpleCosts
public static class Alignment.SimpleCosts
Class for simple costs with costs mismatch for a mismatch,
costs start to start a new gap, elong to
elongate a gap by one position, and costs of 0 for a match
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.jstacs.algorithms.Alignment.Costs |
|---|
Alignment.Costs.Direction |
| Constructor Summary | |
|---|---|
Alignment.SimpleCosts(double mismatch,
double start,
double elong)
Creates a new instance of simple costs with costs mismatch for a mismatch, costs start to
start a new gap, elong to elongate a gap by one
position, and costs of 0 for a match |
|
| Method Summary | |
|---|---|
double |
getCostFor(Sequence s1,
Sequence s2,
int i,
int j,
Alignment.Costs.Direction from)
Returns the costs for the alignment if s1(i) and s2(j) coming from from. |
double |
getElongateCosts()
Returns the costs to elongate a gap by one position |
double |
getGapCostsFor(int length)
Returns the costs for a gap of length length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Alignment.SimpleCosts(double mismatch,
double start,
double elong)
mismatch for a mismatch, costs start to
start a new gap, elong to elongate a gap by one
position, and costs of 0 for a match
mismatch - the mismatch costsstart - the costs to start a gapelong - the costs to elongate a gap| Method Detail |
|---|
public double getCostFor(Sequence s1,
Sequence s2,
int i,
int j,
Alignment.Costs.Direction from)
Alignment.Costsfrom.
getCostFor in interface Alignment.Costss1 - the first sequences2 - the second sequencei - the index in the first sequencej - the index in the second sequencefrom - the direction within the DP-matrix
public double getElongateCosts()
Alignment.Costs
getElongateCosts in interface Alignment.Costspublic double getGapCostsFor(int length)
Alignment.Costslength.
getGapCostsFor in interface Alignment.Costslength - the length of the gap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||