NAME

check_spectra_are_comparable - Checks that spectra are comparable

SYNOPSIS

#include "s/s_spectra.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 check_spectra_are_comparable
(
	const Spectra *sp1,
	const Spectra *sp2
);

DESCRIPTION

This routine checks that the number of intervals, the step size and the offset of spectra sp1 and sp2 are the same. If they are not, then ERROR is returned, with an error message being set. If these characteristics are the same, the spectra are considered to be comparable, and NO_ERROR is returned. The "type" of the spectra need not be the same for them to be considered comparable.

NOTE

This routine does not test whether or not the number of spectra in the two spectra sets are the same.

RELATED

Spectra

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

create_spectra , free_spectra , get_target_spectra , copy_spectra , convert_spectra , multiply_spectra