Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

my input data is float type,but algorithm tat i am using is based on 12 bit array.can u say me what type of data conversion is suitable.

1 visualización (últimos 30 días)
my algorthim is attached in form of image for reference.parents ie p1 ,p2 are in floating datatypes like 0.4491 2.3419 5.4846 0.4576 binary coding doesn't work for this algorithm
  4 comentarios
Walter Roberson
Walter Roberson el 11 de Feb. de 2014
I think I might understand how it is to be done, but I will need an example set of input values and the resulting values to work with.
In that block of 6, I see P1 twice and P2 twice. Are those representing the same P1 and P2, or are there two different sets of P1 and P2 ?
Do the grey areas represent anything in particular?
Why the heck would anyone want to use this output format?
saranya thangavel
saranya thangavel el 11 de Feb. de 2014
I am using genetic algorithm for feature selection of cancer affected WBC.feature means area,mean,minor,major,sd of cancer cells,these values are in floating data type.now p1 & p2 are features,but algorithm needs coding of float into 12 bit array,algorithm is order partially mapped crossover.from p1 and p2 ,c1 is obtained,where ever p1,p2 it represents parents.gray area is for explaining working of algorithm following are steps of algorithm,read this with image,you will know how c1 is obtained from p1 and p2
select a random set [O21, O12, O42, O32, O43] of continuous operation from P1 and copy into C1, so as to maintain the same position. Look into the same position of continuous operations from P2 and find the operations that have not been copied. The operations are [O41, O22, O23]. Copy those elements into C1, so as to maintain the relative ordering. The operations O41, O22, O23 of P2 are copied into first, second and third position in C1 respectively. Copy the remaining elements [O11, O31, O13, O33] that have not been copied into C1, so as to maintain the relative ordering. Select a random set [O32, O23, O13, O42] of continuous operation from P2 and copy into C2, so as to maintain the same position. Look into the same position of continuous operations from P1 and find the operations that have not been copied. The operations are [O43, O22]. Copy those elements into C2, so as to maintain the relative ordering. The operations O43, O22 of P1 are copied into first, and position in C2 respectively. Copy the remaining elements [O33, O11, O41, O31, O21, O12] that have not been copied into C2, so as to maintain the relative ordering.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by