12 views (last 30 days)

I have run Flower Pollination Algorithm 100 times and have got readings of fitness values. The values of my fitness are as follows:

fitness=[

4.E+00

0.E+00

0.E+00

0.E+00

4.E+00

0.E+00

0.E+00

5.E-10

4.E+00

0.E+00

2.E-16

0.E+00

0.E+00

4.E+00

0.E+00

0.E+00

2.E-13

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

4.E+00

4.E-27

0.E+00

4.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

2.E-11

1.E-10

0.E+00

0.E+00

0.E+00

0.E+00

2.E-10

1.E-14

0.E+00

7.E-08

2.E-19

0.E+00

0.E+00

0.E+00

6.E-10

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

2.E-07

0.E+00

0.E+00

0.E+00

0.E+00

2.E-08

0.E+00

2.E-07

0.E+00

0.E+00

6.E-06

0.E+00

0.E+00

9.E-14

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

0.E+00

3.E-13

0.E+00

2.E-10

0.E+00

0.E+00

0.E+00

0.E+00

2.E-08

0.E+00

0.E+00

0.E+00

7.E-21

0.E+00

0.E+00

4.E-07

0.E+00

0.E+00

0.E+00

5.E-10

0.E+00

0.E+00

3.E-06

2.E-16

5.E-07

0.E+00 ];

How can I get its CDF plot.

Star Strider
on 18 Oct 2020

Edited: Star Strider
on 18 Oct 2020

Try this:

[f,x,flo,fup] = ecdf(fitness);

figure

loglog(x, f)

hold on

plot(x, [flo fup], '--r')

hold off

grid

legend('f', '95% CI', 'Location','SE')

xlabel('x')

ylabel('CDF')

EDIT — (17 Oct 2020 at 3:35)

Added plot figure:

.

Star Strider
on 19 Oct 2020

Opportunities for recent engineering grads.

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

Start Hunting!
## 0 Comments

Sign in to comment.