NAME
fit_parametric_cubic - Returns a pair of parametric equations in t which most closely fit a set
SYNOPSIS
#include "curv/curv_lib.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int fit_parametric_cubic
(
const Vector *t_vp,
const Matrix *data_mp,
const Vector *weight_vp,
const Matrix *c_mp,
Vector **new_t_vpp,
Matrix **new_c_mpp,
double *error_ptr
);
DESCRIPTION
of specified points. The time values for the set of points is not known.
For a set of points whose times are known, see
fit_parametric_cubic_known_time.
RETURNS
An integer indicating whether the function executed successfully.
Returns ERROR if a problem was encountered.
PARAMETERS
t_vp: a pointer to a set of time values
corresponding to the input points in data_mp.
data_mp: a pointer to a set of points.
weight_vp: a pointer to a set of weight values for points in data_mp.
c_mp: a pointer to the current estimate for the coeffcients of the cubics.
new_t_vpp: a pointer to an updated estimate for the times at
which the points occurred.
new_c_mpp: a pointer to a pointer to a set of parametric cubic coefficients.
error_ptr: a pointer to a fitting error value.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
fit_parametric_cubic_known_time