Table of Contents
QccDatasetSetMaxMinValues - set maximum and minimum vector component
values for dataset
#include "libQccPack.h"
int QccDatasetSetMaxMinValues(QccDataset
*dataset);
QccDatasetSetMaxMinValues() scans the vector array
dataset->vectors to find the maximum and minimum vector components contained
in the array. These values are returned in dataset->max_val and dataset->min_val,
respectively.
Values for dataset->num_vectors, dataset->access_block_size,
and dataset->vector_dimension must be set appropriately, and dataset->vectors
must be allocated prior to calling QccDatasetSetMaxMinValues().
On success, 0 is returned. On error, 1 is returned.
QccDataset(3)
,
QccPack(3)
QccDatasetSetMaxMinValues() works only over the current
block of the dataset as contained in dataset->vectors. For a dataset being
accessed in blocks, QccDatasetSetMaxMinValues() will not find the maximum
and minimum values over the entire dataset (which is probably what is
desired), but rather the values over the current block.
Copyright
(C) 1997-2021 James E. Fowler
Table of Contents