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

1 回表示 (過去 30 日間)
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 件)

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by