|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.energy.simpleEnergyTerms.compositeTorsions.SplinedPolynomial
public class SplinedPolynomial
Polynomial for calculating energy values for a given amino acid, and given torsion angles.
| Field Summary | |
|---|---|
private int |
aac
|
private double[][] |
breaks
|
private double[] |
coefs
|
private int |
numVariables
|
private int[] |
order
|
private double[][] |
quickPowerMatrix
|
private int |
ssType
|
private int[] |
torsionAngles
|
| Fields inherited from interface meshi.energy.simpleEnergyTerms.compositeTorsions.CompositeTorsionsDefinitions |
|---|
ALL, CHI_1, CHI_2, CHI_3, CHI_4, COIL, HELIX, NUM_SIDECHAIN_TORSIONS, OMG, OMNI, PHI, POLYNOMIAL_CHI_1, POLYNOMIAL_CHI_1_CHI_2, POLYNOMIAL_CHI_1_CHI_2_TORSIONS, POLYNOMIAL_CHI_1_CHI_3, POLYNOMIAL_CHI_1_CHI_3_TORSIONS, POLYNOMIAL_CHI_1_CHI_4, POLYNOMIAL_CHI_1_CHI_4_TORSIONS, POLYNOMIAL_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI, POLYNOMIAL_PHI_PSI_CHI_1, POLYNOMIAL_PHI_PSI_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI_TORSIONS, PREPRO, PSI, SHEET, TOTAL_TORSION_ANGLES, UNIDENTIFIED_TORSION_TYPE |
| Constructor Summary | |
|---|---|
SplinedPolynomial(int numVariables,
int aac,
int[] torsionAngles,
int ssType,
double[][] breaks,
double[] coefs)
Creates a new splined polynomial. |
|
| Method Summary | |
|---|---|
int |
findBin(double[] breaks,
double torsion)
Find break index (bin) for torsion angle. |
double |
fixTorsionToBin(double[] breaks,
double torsion,
int bin)
Fixes a torsion to be inside its bin. |
boolean |
isPolynomialNeeded(int aac,
int[] torsionAngles,
int ssType)
checks whether this polynomial is of the parameters needed. |
private static double |
quickPower(double torsion,
int power)
Raises a double by the power, with 0 <= power <= 3. |
java.lang.String |
toString()
Converts attributes of polynomial to string. |
double |
value(int derivVar,
double... args)
Calculates polynomial's derivation for given variable with value for list of arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int numVariables
private int aac
private int[] torsionAngles
private int ssType
private double[][] breaks
private double[] coefs
private double[][] quickPowerMatrix
private int[] order
| Constructor Detail |
|---|
public SplinedPolynomial(int numVariables,
int aac,
int[] torsionAngles,
int ssType,
double[][] breaks,
double[] coefs)
| Method Detail |
|---|
public boolean isPolynomialNeeded(int aac,
int[] torsionAngles,
int ssType)
public double value(int derivVar,
double... args)
derivVar - variable to be derived (zero for calculation of polynomial).
public int findBin(double[] breaks,
double torsion)
public double fixTorsionToBin(double[] breaks,
double torsion,
int bin)
public java.lang.String toString()
toString in class java.lang.Object
private static double quickPower(double torsion,
int power)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||