Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

optimize.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/trans.h>
#include <bicpl/numerical.h>

Include dependency graph for optimize.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  function_data

Defines

#define FUNCTION_TOLERANCE   1e-6
#define INITIAL_SIMPLEX_SIZE   3.0
#define MAX_ITERS   300

Functions

private Real lsq_objective (Transform *lt, Real **pts1, Real **pts2, int npoints)
private Real fit_function (void *func_data, float params[])
public BOOLEAN optimize_simplex (Real **pts1, Real **pts2, int npoints, Trans_type trans_type, Real center[], Real translations[], Real scales[], Real shears[], Real rotations[])


Define Documentation

#define FUNCTION_TOLERANCE   1e-6
 

Definition at line 24 of file optimize.c.

Referenced by optimize_simplex().

#define INITIAL_SIMPLEX_SIZE   3.0
 

Definition at line 25 of file optimize.c.

Referenced by optimize_simplex().

#define MAX_ITERS   300
 

Definition at line 26 of file optimize.c.

Referenced by optimize_simplex().


Function Documentation

private Real fit_function void *  func_data,
float  params[]
 

Definition at line 102 of file optimize.c.

References build_transformation_matrix(), function_data::center, lsq_objective(), function_data::ndim, function_data::npoints, function_data::pts1, and function_data::pts2.

Referenced by optimize_simplex().

private Real lsq_objective Transform *  lt,
Real **  pts1,
Real **  pts2,
int  npoints
 

Definition at line 54 of file optimize.c.

Referenced by fit_function().

public BOOLEAN optimize_simplex Real **  pts1,
Real **  pts2,
int  npoints,
Trans_type  trans_type,
Real  center[],
Real  translations[],
Real  scales[],
Real  shears[],
Real  rotations[]
 

Definition at line 164 of file optimize.c.

References function_data::center, FALSE, fit_function(), FUNCTION_TOLERANCE, get_amoeba_parameters(), INITIAL_SIMPLEX_SIZE, initialize_amoeba(), MAX_ITERS, function_data::ndim, function_data::npoints, perform_amoeba(), function_data::pts1, function_data::pts2, terminate_amoeba(), TRANS_LSQ10, TRANS_LSQ9, and TRUE.

Referenced by compute_arb_param_transform().


Generated on Wed Jul 28 09:11:13 2004 for BICPL by doxygen 1.3.7