fr.orsay.lri.varna.models.rna
Class RNA.ComputeArcCenter
java.lang.Object
fr.orsay.lri.varna.models.rna.RNA.ComputeArcCenter
- Enclosing class:
- RNA
private static class RNA.ComputeArcCenter
- extends Object
Method Summary |
static double |
computeArcCenter(double delta,
double l)
Given an arc length (l) and segment length (delta) of the arc,
find where to put the center, returned as a position of the perpendicular
bisector of the segment. |
static double |
f(double c,
double delta)
|
static double |
fprime(double c,
double delta)
d/dc f(c,delta) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RNA.ComputeArcCenter
private RNA.ComputeArcCenter()
computeArcCenter
public static double computeArcCenter(double delta,
double l)
- Given an arc length (l) and segment length (delta) of the arc,
find where to put the center, returned as a position of the perpendicular
bisector of the segment. The positive side is the one where the arc is drawn.
It works using Newton's method.
f
public static double f(double c,
double delta)
fprime
public static double fprime(double c,
double delta)
- d/dc f(c,delta)