Please, help me understand working of this sigmoid function
Mostrar comentarios más antiguos
- Ixy2 =ImVar(S,1); %variance of 3*3 neighbour
- for k = 1:D
- minDd = min(min(Ixy2(:,:,k)));
- meanDd = mean(mean(Ixy2(:,:,k)));
- alpha = meanDd;
- kk = log(0.01)/(minDd-alpha);
- u(:,:,k) = 1-1./(1+exp(kk*(Ixy2(:,:,k)-alpha))); %weight calculated with Sigmoid functionu,:,:,k
- end
I'm confused that whats happening after line four
2 comentarios
Image Analyst
el 14 de En. de 2019
They're just creating temporary variables alpha and kk because otherwise the equation in line 7 would be super confusing and hard to follow.
Fatima Rashid
el 14 de En. de 2019
Respuestas (0)
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!