prg_profile_data_glitch_remove()

摘要

对 profile 数据进行分桶(bucketize)处理并去除其中的毛刺。

语法

prg_profile_data_glitch_remove (profile_handle, rounding_multiple)
参数 类型 说明
profile_handle PrgT_Profile_Handle 目标 profile。
rounding_multiple double 用于对 profile 数据分桶的值。必须大于 0。

返回类型

PrgT_Compcode

如果函数未遇到错误,返回 PrgC_Compcode_Success;否则返回 PrgC_Compcode_Failure。

头文件

prg_profile_funcs.h

详情

包含来自真实世界数据源的记录数据的 profile,有时会在数据值中出现不期望的波动。例如,时钟不一致可能导致记录的流量水平出现间歇性波动。此函数可以通过对 profile 数据进行*分桶(bucketizing)*处理来去除这些不期望的波动。理想情况下,rounding_multiple 应当是能够去除这些波动的最小值。

此函数遍历指定的 profile,并将所有 x(时间)值舍入到最接近的 rounding_multiple。如果该处理导致同一时间存在多个数据点,则保留该时间下值最大的数据点,其余数据点被丢弃。

原始 profile 将被分桶后的数据替换。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com