NAME

get_row_fits - Computes fitting error of basis functions

SYNOPSIS

#include "n/n_fit.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 get_row_fits
(
	Matrix **estimate_mpp,
	const Matrix *observed_mp,
	int num_PC,
	const Matrix *PC_mp,
	double *error_ptr
);

DESCRIPTION

This routine computes the fitting error using num_PC of the matrix with rows of basis functions PC_mp. The reported error is a relative fit.

RETURNS

NO_ERROR on success, and ERROR on failure, with an appropriate error message being set.

NOTE

This routine works even if the basis vectors are not orthogonal.

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

least_squares , least_squares_2 , get_linear_equation_rms_error , get_best_diagonal_post_map , get_diagonal_post_map_error , get_best_map , get_best_post_map , get_post_map_error , get_svd_basis_for_rows , project_rows_onto_basis , get_best_linear_fit , get_best_linear_fit_2