prg_profile_scale()
Abstract
Scales the data values of a private or public profile.
Syntax
prg_profile_scale (profile_handle, value, scale_op)
| Argument | Type | Description |
|---|---|---|
profile_handle |
PrgT_Profile_Handle |
Handle to the profile of interest. |
value |
double |
Scaling factor. |
scale_op |
PrgT_Profile_Scale_Op |
Scaling operation (see Details). |
Return Type
PrgT_Profile_Handle
Handle to a scaled copy of the original profile.
Header
prg_profile_funcs.h
Details
This function scales the y values in the specified profile by value. scale_op determines how the profile is scaled, as follows:
PrgC_Profile_Scale_Op_Add—valueis added to each profile valuePrgC_Profile_Scale_Op_Multiply—valueis multiplied times each profile value