How to design more than 2 Gaussian curves such that they intersect at some point on one side only with sigma dependent on the means
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to design more than 2 gaussians such that they intersect (overlap) at certain point by providing the means but the sigma to be dependent on the means. Below is one simple code for this attempt but the overlap is more if the means are near. I want to cut the curves on one side only. This is mainly because the gaussian are symmetric and one solution could be to use asymmetric gaussian, but I would like to know if it's possible with the symmetric gaussians.
% define parameters and Gaussian
mu1=1; mu2=4; mu3=5; mu4=8; %sig1=1; mu2=3; sig2=2; mu3=6; sig3=2;
im = [mu1 mu2 mu3 mu4];
min = -15;
max = 15;
sigma = [];
sigma = abs(im(2:end)-im(1:end-1))/(2+(4-2)*rand) %randi([2 4],1);
sigma(end+1) = sigma(end);
hold on
for p = 1 : length(im)
x = (-10 * sigma(p):0.01:10 * sigma(p)) + im(p);
y = gaussmf(x, [sigma(p) im(p)]);
plot(x, y)
end
axis([-2 15 0 1])
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Fit Postprocessing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!