NAME
set_signature_weights - Sets the weights vector of the target signature.
SYNOPSIS
#include "lsm/lsm_emd.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 set_signature_weights
(
Signature *target_sig_ptr,
const Vector *weight_data_vp
);
DESCRIPTION
This routine sets the weights vector of the target signature pointed to by
target_sig_ptr to the values contained in the input Vector weight_data_vp.
The weight data in the target signature will be normalized to sum to 1.
RETURNS
Either NO_ERROR, or ERROR, with an appropriate error message being set.
PRECONDITIONS
1) The signature pointed to by target_sig_ptr must already be allocated.
2) The vector pointed to by weight_data_vp must not be NULL.
3) The number of features in the target signature must be equal to the
input weight Vector length.
RELATED
free_signature, copy_signature, set_signature_features,
set_signature_features, get_signature_from_RGB, get_clustered_data,
convert_spectrum_to_signature
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Lindsay Martin
DOCUMENTER
Lindsay Martin
SEE ALSO
get_earthmover_distance
,
euclidean_distance
,
get_target_signature
,
free_signature
,
copy_signature
,
set_signature_features
,
get_target_signature_db