DATASERV (kapputils) functions


LIBRARY ROUTINE

kapu_scale_data - scales the data

LIBRARY CALL

int 
kapu_scale_data(kobject *src_obj, double min, double max)

INPUT

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

For unmapped data, the value segment is scaled using KPDS_VALUE_SCALING. For mapped data, the map segment is scaled using KPDS_MAP_SCALING. Attributes are set so that any subsequent calls to kpds_get_data will provide scaled data. Note that the actual data is not transformed by this function. If KPDS_DATA_RANGE is set, then these values are used for the input minimum and maximum; otherwise, the data is scanned to determine the input minimum and maximum.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATASERV/objects/library/kapputils/src/utilities.c

SEE ALSO

kapputils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.