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.

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 commentaires

No attachment :(
What is class() of your data ? You appear to have shown 13 bits per line. Is your input a vector of 0's and 1's, each representing a bit?
p1,p2 represent parent 1 and parent 2,c1,c2 means child 1 ,child 2,bcz this is crossover algorithm .assume my parent1 is 5.4846,i need to convert into 12 bit array,if i convert 5.4846 into binary value of 12 bit,algorithm doesnt work,bcz algorith contains twelve distinct bits,binary has only 1 & o's .say some other coding suitable for this algorithm
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?
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.

Réponses (0)

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by