Table of Contents

NAME

QccDatasetSetMaxMinValues - set maximum and minimum vector component values for dataset

SYNOPSIS

#include "libQccPack.h"

int QccDatasetSetMaxMinValues(QccDataset *dataset);

DESCRIPTION

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().

RETURN VALUE

On success, 0 is returned. On error, 1 is returned.

SEE ALSO

QccDataset(3) , QccPack(3)

NOTES

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.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads