1 回答

TA貢獻2065條經(jīng)驗 獲得超14個贊
我認(rèn)為scipy.stats.skewnorm可能會奏效。它可以讓您表征偏態(tài)正態(tài)分布,還可以從偏態(tài)正態(tài)分布中采樣數(shù)據(jù)。
現(xiàn)在......也許這對你的數(shù)據(jù)來說是一個糟糕的假設(shè)......也許它不是正常的,但這是我嘗試的第一件事。
# import skewnorm
from scipy.stats import skewnorm
# find params
a, loc, scale = skewnorm.fit(orig_arr)
# mimick orig distribution with skewnorm
# keep size and shape the same as orig_arr
noise_arr = skewnorm(a, loc, scale).rvs(orig_arr.size).astype('uint16').reshape(orig_array.shape)
有更多關(guān)于探索這種數(shù)據(jù)的細節(jié)......繪制它......比較它......在這里: 如何創(chuàng)建uint16高斯噪聲圖像?
此外...我認(rèn)為使用imshow和設(shè)置vmin,并vmax可以讓你看看你的數(shù)據(jù)的圖像或熱圖是該范圍敏感。上面的鏈接也證明了這一點。
希望有幫助!
添加回答
舉報