fitness type in genetic algorithm

hi. i have a program wich base on genetic algorithm in image registration.there is one line in code i dont understand what doing : %%%%%%%%%%%%%%%%%%% parameter setting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Determining fitness type % notice that SSD and SAD do not work correctly for Original image registration Fitness_type=4; % MI=1 , NMI=2 , SSD=3 , SAD=4
can anybody tell me whats is that code meaning? tnx all

Answers (1)

John D'Errico
John D'Errico on 25 Aug 2017
It does very little.
A variable is created of name Fitness_type. It is assigned the value 4.
Anything that starts with a % is just a comment.
Perhaps you need to read the very basic documentation for MATLAB? It is legal to read the manual, after all.

This question is closed.

Products

Asked:

on 25 Aug 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!