变密度采样 (VDS)

变密度采样——在感兴趣区域密集采样,边缘稀疏采样的实验参数生成器。

概述

quatm.utils.vds 提供变密度采样(Variable Density Sampling)工具,用于生成实验扫描参数。在参数空间的感兴趣区域密集采样,而在边缘区域稀疏采样,优化有限的实验时间。

函数

函数说明
create_support_points_stochastic(limits, n, roi)随机变密度采样点生成
gauss_prime_norm(x, mu, sigma)高斯归一化导数
gauss_prime_norm_abs(x, mu, sigma)高斯归一化导数的绝对值

用法

from quatm.utils.vds import create_support_points_stochastic

points = create_support_points_stochastic(
    limits=[(0, 100), (0, 50)],  # 参数范围
    n=200,                         # 采样点数
    roi=[(30, 70), (20, 30)],     # 感兴趣区域(密集采样)
)