prg_profile_data_glitch_remove()
Abstract
Bucketizes and removes glitches from profile data.
Syntax
prg_profile_data_glitch_remove (profile_handle, rounding_multiple)
| Argument | Type | Description |
|---|---|---|
profile_handle |
PrgT_Profile_Handle |
Profile of interest. |
rounding_multiple |
double |
Value used to bucketize the profile data. Must be > 0. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the function encounters no errors; PrgC_Compcode_Failure otherwise.
Header
prg_profile_funcs.h
Details
Profiles that contain data recorded from a real-world source sometimes have unwanted fluctuations in the data values. For example, clocking inconsistencies can result in intermittent fluctuations in recorded traffic levels. This function can remove unwanted fluctuations by bucketizing the profile data. Ideally, rounding_multiple should be the smallest value that results in removal of the unwanted fluctuations.
This function goes through the specified profile and rounds all x (time) values to the nearest rounding_multiple. If this process results in multiple data points for a given time, the data point with the maximum value for that time is kept for the profile and the others are dropped.
The original profile is replaced with the bucketized data.