fr.orsay.lri.varna.models.rna
Class RNA.ComputeArcCenter

java.lang.Object
  extended by fr.orsay.lri.varna.models.rna.RNA.ComputeArcCenter
Enclosing class:
RNA

private static class RNA.ComputeArcCenter
extends Object


Constructor Summary
private RNA.ComputeArcCenter()
           
 
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
 

Constructor Detail

RNA.ComputeArcCenter

private RNA.ComputeArcCenter()
Method Detail

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)