Classes | Functions
core/vnl/algo/vnl_bracket_minimum.cxx File Reference

Function to bracket a minimum. More...

#include "vnl_bracket_minimum.h"
#include <vnl/algo/vnl_fit_parabola.h>
#include <vcl_cmath.h>
#include <vcl_algorithm.h>

Go to the source code of this file.

Classes

class  vnl_bm_func

Functions

void swap (double &a, double &b)
void vnl_bracket_minimum (vnl_cost_function &fn, double &a, double &b, double &c, double &fa, double &fb, double &fc)
 Given initial values a and b, find bracket a<b<c s.t. f(a)>f(b)<f(c).

Detailed Description

Function to bracket a minimum.

Author:
Tim Cootes
Date:
Feb 2007

Definition in file vnl_bracket_minimum.cxx.


Function Documentation

void swap ( double &  a,
double &  b 
) [inline]

Definition at line 20 of file vnl_bracket_minimum.cxx.

void vnl_bracket_minimum ( vnl_cost_function fn,
double &  a,
double &  b,
double &  c,
double &  fa,
double &  fb,
double &  fc 
)

Given initial values a and b, find bracket a<b<c s.t. f(a)>f(b)<f(c).

Final function values at a,b,c stored in fa,fb,fc

Definition at line 38 of file vnl_bracket_minimum.cxx.