alun.util
Class GoldenSection

java.lang.Object
  extended by alun.util.GoldenSection

public class GoldenSection
extends java.lang.Object


Field Summary
static double gold
           
 
Constructor Summary
GoldenSection()
           
 
Method Summary
static XYPair golden(Curve p, double lo, double mid, double hi, double tol)
           
static XYPair golden(Curve p, XYPair r, XYPair s, XYPair t, XYPair u, double tol)
           
static void main(java.lang.String[] args)
           
static XYPair maximum(Curve p, double lo, double hi, double tol)
           
static XYPair maximum(Curve p, double lo, double hi, double tol, boolean verb)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gold

public static double gold
Constructor Detail

GoldenSection

public GoldenSection()
Method Detail

maximum

public static XYPair maximum(Curve p,
                             double lo,
                             double hi,
                             double tol)

maximum

public static XYPair maximum(Curve p,
                             double lo,
                             double hi,
                             double tol,
                             boolean verb)

golden

public static XYPair golden(Curve p,
                            double lo,
                            double mid,
                            double hi,
                            double tol)

golden

public static XYPair golden(Curve p,
                            XYPair r,
                            XYPair s,
                            XYPair t,
                            XYPair u,
                            double tol)

main

public static void main(java.lang.String[] args)