- calculate the error between samples of two
datasets (LOCAL)
SYNOPSIS
double compute_error_dataset
(dset1, dset2)
ARGUMENTS
DATASET
*dset1
The first dataset.
DATASET
*dset2
The second dataset.
RETURNS
The total summed squared error of the samples in the datasets.
FUNCTION
The function calculates the summed squared error between the samples of the
two datasets dset1 and
dset2. Note that the error is caculated per sample as they are ordered in
the datasets and not all combinations of samples are used. Moreover it
is convenient if both datsets have the same number of samples. This function
is used to calculate the stopping criterion for the isodata clustering
algorithm.