|
||||||||||
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
org.strbio.mol.lib.GapAffine
public class GapAffine
Affine gap penalties. (cost = gapI + (n-1) * gapE)
Version 1.1, 7/1/99 - conforms to GapModel 1.1 interface Version 1.0, 2/25/99 - original version
Field Summary | |
---|---|
double |
gapE
Gap extention penalty. |
Fields inherited from class org.strbio.mol.lib.GapConstant |
---|
endGapFoldOK, endGapSeqOK, gapI |
Constructor Summary | |
---|---|
GapAffine(double gapi,
double gape)
Set the penalties. |
|
GapAffine(double gapi,
double gape,
boolean seqEndGapOK,
boolean foldEndGapOK)
Set the penalties. |
Method Summary | |
---|---|
void |
describe(Printf outfile)
the default function describes only ends. |
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. |
void |
printParameters(Printf outfile)
default printParameters function does nothing. |
void |
processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
This function is optimized for affine gap penalties. |
void |
setOptimizableParameters(double[] x)
set all the optimizable (double) parameters from a vector. |
Methods inherited from class org.strbio.mol.lib.GapConstant |
---|
describeBriefly, isEndGapFoldOK, isEndGapSeqOK |
Methods inherited from class org.strbio.mol.lib.GapModelAdapter |
---|
calculateFirstPosition, dealWithEndPenalties, describeEnds, finished, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double gapE
Constructor Detail |
---|
public GapAffine(double gapi, double gape)
public GapAffine(double gapi, double gape, boolean seqEndGapOK, boolean foldEndGapOK)
Method Detail |
---|
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
gapCostDeletion
in class GapConstant
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
gapCostInsertion
in class GapConstant
public void processGlobalMatrix(float[][] mat, int[][] nextX, int[][] nextY, Polymer seq, Polymer fold)
processGlobalMatrix
in interface GapModel
processGlobalMatrix
in class GapConstant
public void describe(Printf outfile)
GapModelAdapter
describe
in interface Description
describe
in class GapConstant
public void printParameters(Printf outfile)
GapModelAdapter
printParameters
in interface GapModel
printParameters
in class GapModelAdapter
public double[] getOptimizableParameters()
getOptimizableParameters
in interface GapModel
getOptimizableParameters
in class GapConstant
public void setOptimizableParameters(double[] x)
setOptimizableParameters
in interface GapModel
setOptimizableParameters
in class GapConstant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |