Fit data to normal distribution

后端 未结 1 516
自闭症患者
自闭症患者 2020-12-21 07:42

I want some data to fit the corresponding Gaussian distribution.

The data is meant to be Gaussian already, but for some filtering reasons, they will not perfectly ma

相关标签:
1条回答
  • 2020-12-21 07:57

    If you don't want to make any non-linear transformations of the distributions, all you can do is adjust the mean and standard deviation.

    %# 1. adjust the mean (do this even if the offset is small)
    data = data - mean(data);
    
    %# 2. adjust the standard deviation
    data = data/std(data) * expected_SD;
    
    0 讨论(0)
提交回复
热议问题