|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strbio.mol.lib.GapModelAdapter
org.strbio.mol.lib.GapConstant
public class GapConstant
Constant gap penalties.
Version 1.1, 7/1/99 - conforms to GapModel 1.1 interface Version 1.0, 2/25/99 - original version
| Field Summary | |
|---|---|
boolean |
endGapFoldOK
Gaps at the end of the fold - ok? |
boolean |
endGapSeqOK
Gaps at the end of the sequence - ok? |
double |
gapI
Gap opening penalty. |
| Constructor Summary | |
|---|---|
GapConstant(double gapi)
Set the penalty. |
|
GapConstant(double gapi,
boolean seqEndGapOK,
boolean foldEndGapOK)
Set the penalty. |
|
| Method Summary | |
|---|---|
void |
describe(Printf outfile)
the default function describes only ends. |
void |
describeBriefly(Printf outfile)
|
double |
gapCostDeletion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
This function should return the gap cost for aligning residues seqi and foldi, then seqj and foldj. |
double |
gapCostInsertion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
This function should return the gap cost for aligning residues seqi and foldi, then seqj and foldj. |
double[] |
getOptimizableParameters()
get all the optimizable (double) parameters as a vector. |
boolean |
isEndGapFoldOK()
See if aligning the end of the fold vs a gap is OK (not penalized) |
boolean |
isEndGapSeqOK()
See if aligning the end of the sequence vs a gap is OK (not penalized) |
void |
processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
This function is optimized for constant gap penalties. |
void |
setOptimizableParameters(double[] x)
set all the optimizable (double) parameters from a vector. |
| Methods inherited from class org.strbio.mol.lib.GapModelAdapter |
|---|
calculateFirstPosition, dealWithEndPenalties, describeEnds, finished, printParameters, setup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean endGapSeqOK
public boolean endGapFoldOK
public double gapI
| Constructor Detail |
|---|
public GapConstant(double gapi)
public GapConstant(double gapi,
boolean seqEndGapOK,
boolean foldEndGapOK)
| Method Detail |
|---|
public boolean isEndGapSeqOK()
GapModel
isEndGapSeqOK in interface GapModelpublic boolean isEndGapFoldOK()
GapModel
isEndGapFoldOK in interface GapModel
public double gapCostDeletion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
GapModel
seq: i.....j
fold: ixxxxxj
gapCostDeletion in interface GapModel
public double gapCostInsertion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
GapModel
seq: ixxxxxj
fold: i.....j
gapCostInsertion in interface GapModel
public void processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
processGlobalMatrix in interface GapModelprocessGlobalMatrix in class GapModelAdapterpublic void describe(Printf outfile)
GapModelAdapter
describe in interface Descriptiondescribe in class GapModelAdapterpublic void describeBriefly(Printf outfile)
public double[] getOptimizableParameters()
getOptimizableParameters in interface GapModelgetOptimizableParameters in class GapModelAdapterpublic void setOptimizableParameters(double[] x)
setOptimizableParameters in interface GapModelsetOptimizableParameters in class GapModelAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||