Please, help me understand working of this sigmoid function
Afficher commentaires plus anciens
- 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 commentaires
Image Analyst
le 14 Jan 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
le 14 Jan 2019
Réponses (0)
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!