Random Standard Deviation Dummy Data Augmentation Matlab

If you want to implement random standard deviation dummy data augmentation in Matlab, you can use Matlab's built-in functions and tools. One approach is that you can generate some random noise, add it to the original data, and calculate the standard deviation of the newly generated data. Here is a sample code:

% 生成一些原始数据data = [1 2 3 4 5 6 7 8 9 10];

% 计算标准差
std_data = std(data);

% 生成随机噪声
noise = randn(1,10) * std_data;

% 将噪声与原始数据相加
augmented_data = data + noise;

% 计算新生成数据的标准差
std_augmented_data = 

Guess you like

Origin blog.csdn.net/weixin_42588672/article/details/129513553#comments_27378857