hist_scale_buffer (buffer, xscale, xoffset, yscale, yoffset)
A binary buffer of X-Y pairs of doubles, created by a call to hist_buffer_id_read.
The X value of the data pairs is transformed as follows:
x' = x * xscale + xoffset
The Y value of the data pairs is transformed as follows:
y' = y * yscale + yoffset
This function performs an offset and scaling transformation on a binary buffer of X-Y data pairs. The buffer is modified in place (i.e., a new buffer is not created, and the old values cannot be recovered). This function can be used to adjust data for graphing.
This function corresponds to the Cogent C API function HI_ScaleBuffer.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.