![](/img/trans.png)
[英]I want to remove all the points that satisfy certain condition in matlab
當前 plot 我想刪除位於 x 軸 5 和 10 以及 y 軸 0 和 500 之間的所有數據點。 givenData 是一個包含數據的 10000X2 矩陣。 我寫了下面的代碼。 我在這里犯了什么錯誤? 還有更好的方法嗎? 任何幫助表示贊賞。 謝謝你。 ...
[英]I want to remove all the points that satisfy certain condition in matlab
當前 plot 我想刪除位於 x 軸 5 和 10 以及 y 軸 0 和 500 之間的所有數據點。 givenData 是一個包含數據的 10000X2 矩陣。 我寫了下面的代碼。 我在這里犯了什么錯誤? 還有更好的方法嗎? 任何幫助表示贊賞。 謝謝你。 ...
[英]how to save the `Z values` of the data points into a variable for comparing it to a certain z value in matlab?
Z value在function中使用以下代碼計算: 我想使用此Z value將其與Z = 4e-5的特定值進行比較,並消除位於Z = 4e-5等高線之外的所有點。 我編寫了以下代碼來生成輪廓和散點圖 plot 我想消除下圖中紅色輪廓外的所有點:當前圖像任何幫助表示贊賞。 謝謝你。 ...
[英]How do I plot only the outer contour lines in GMCM in matlab?
我有生成 GMCM 輪廓的代碼,但我只想要 plot 中的外部輪廓線。我應該在哪里更改代碼以獲得指定的代碼行? 我正在使用高斯混合 copula Function。 我得到的輪廓 我要生成的輪廓 ...
[英]Not able to replicate curve fitting of a gaussian function in python using curve_fit()
我正在嘗試使用 scipy 的 curve_fit() function 將高斯 function 擬合到我的數據集,但未能使 function 擬合。 我使用其他一些工具(例如 Matlab 和 function 很適合)進行了相同的嘗試。 有人可以幫我嗎? 我不確定我做錯了什么。 非常感謝您的幫 ...
[英]Is it possible to limit the accuracy of lmfit?
我想問一些關於 lmfit 准確性的問題(並可能通過獲得答案獲得更好的擬合結果)。 所有實驗光譜都受到采樣的限制,即 x 軸方向上兩點之間的距離。 我注意到(到目前為止)有兩個 lmfit 試圖克服此限制的實例,這給我帶來了問題: 當峰的 FWHM 趨於零時。 我假設如果任意兩個相鄰點相隔 0.0 ...
[英]How to implement a 2D Gaussian on a 2D numpy array
我有一個大小為 10 x 10 的二維 NumPy 數組,我試圖在其中實現二維高斯分布,以便我可以將新列用作我的 ML model 中的一個特征。中心(高斯分布的峰值) 應該位於二維 NumPy 數組的 (3, 5) 處。 Python有什么辦法嗎? 我還包含了我的 np 數組的熱圖。 我感謝任何 ...
[英]Fitting data with Voigt profile in lmfit in python - huge errors
我正在嘗試使用 Voigt 配置文件(Python 中的 lmfit)擬合一些 RIXS 數據,並且我已按以下方式定義了 Voigt 配置文件: 我在 Python 中使用了這個定義而不是流行的 Voigt 配置文件定義: 因為它讓我更清楚地了解峰的強度等。 現在,我有幾個具有 9-10 個峰的光譜 ...
[英]curve fitting with scipy
我正在嘗試使用來自 SciPy 的 curve_fit 擬合曲線。但它沒有按預期工作,我不知道為什么。 這是我的代碼: 如您所見,Gaussian Fit 不起作用,我只得到一條直線。 這是數據: ...
[英]Extract non repeated numbers from a list based on gaussian distribution in matlab
我有一組數字。 讓我們說數字 = [1, 2, 3, 4, 5, 6, 7, 8,9,10] 由此,我想根據高斯分布隨機選擇六個數字。 這意味着選擇 5 和 6 的概率高於選擇 1 和 10 的概率。除此之外,我想確保我選擇的所有六個數字都必須是唯一的。 例如 1、4、5、7、8、10 是可接受的 ...
[英]Find the Gaussian probability density of x for a normal distribution
所以,我應該寫一個 function normpdf(x, avg, std)返回x的高斯概率密度 function 對於具有均值avg和標准差std的正態分布, avg = 0和std = 1 。 這是我到目前為止得到的結果,但是當我單擊運行時,我收到以下消息:Input In [95] ...
[英]Python - Find x and y values of a 2D gaussian given a value for the function
我有一個二維高斯 function f(x,y) 。 我知道x₀的峰值g₀出現時的值y₀和 y₀。 但是后來我想找到f(xₑ, yₑ) = g₀ / e¹處的xₑ和yₑ值。 我知道有多種解決方案,但至少有一個就足夠了。 到目前為止我有def f(x, y, g0,x0,y0,sigma_x,sigm ...
[英]How to crossplatform "gaussian" blurr an image using .NET MAUI
我按照這篇很棒的博客文章中給出的說明對 iOS 和 Android 上我的 .NET MAUI 應用程序中的圖像進行了模糊處理: https://vladislavantonyuk.azurewebsites.net/articles/Creating-beautiful-image-effect ...
[英]Creating 2-D Gaussian Distributions With Python
我正在嘗試根據下圖中的問題創建二維高斯分布。 我正在使用 numpy 的multivariate_normal() : 這是執行此操作的正確方法,還是我遺漏了什么? 問題: ...
[英]R: no applicable method for 'gaussiansmooth' applied to an object of class "c('matrix', 'array', 'double', 'numeric')" or "c('RasterLayer', 'Raster')
I am trying to use the function gaussiansmooth but I am receiving an error: Error in UseMethod("gaussiansmooth"): no applicable method for 'gaussian ...
[英]Resample (increase the pixel size) a satellite image using a Gaussian filter in Python
我有一個 15m 像素大小的衛星圖像(Landsat 8,全色波段)。 我的目標是使用 sigma = 0.5 的Gaussian filter在 460m 處放大圖像(即改變像素大小)。 python 中是否有python可以做到這一點(即,使用Gaussian filter增加像素大小)? 我 ...
[英]How to obtain a gaussian filter in javascript
python 具有fspecial('gaussian', f_wid, sigma)使高斯變得容易( 鏈接)。 Javascript 是否有類似的實用程序? ...
[英]GRASS GIS: Error while executing r.resamp.filter
我想使用高斯濾波器將柵格從 15m 重新采樣到 460m。 目標我有一個我想縮小的粗糙圖像。 我也有一個很好的分辨率帶來幫助縮小。 我使用的縮減方法稱為地理加權區域到點回歸克里金法 (GWATPRK)。 該方法包括兩個步驟: GWR 和, GWR 殘差上的 ATPK。 為了使用柵格數據執行 GW ...
[英]R: How to increase the pixel size (decrease the spatial resolution) of a satellite image by applying a Gaussian filter with a (large) width
目標我試圖模擬粗略的數據,就好像它們是用粗略的 PSF(點擴散函數)測量的一樣。 數據我有一個 15m 像素大小的衛星圖像,我想將它與高斯 kernel 進行卷積,以降低 460m 的空間分辨率。 為此,我需要將傳輸 function(TF;例如,高斯)應用於精細數據,但寬度非常大。 這會產生粗略 ...
[英]Manually get the responses from GLM with gamma distribution and a GLM with inverse guassian distribution
我一直在嘗試從 R 中的統計 package 中手動獲取 predict.glm function 給出的響應值。 但是,我無法這樣做。 我只知道如何使用二項分布手動獲取值。 我真的很感激一些幫助。 我創建了兩個小模型(一個帶有 Gamma 族,一個帶有逆高斯族)。 ...
[英]How to get (random) number from Gaussian Mixture model(GMM)?
我想從 GMM 獲取隨機數列表。 我已經繪制了這樣的分布。 我想知道是否有某種方法可以從分布曲線中獲取值,例如獲取數字 0.94、0.96、0.95....。如何獲取? 我不確定以下內容是否對您有用。 我從最小復制中得到了代碼from matplotlib import rc from skle ...