Calculate the entropy of a special value in one column
Show older comments
I exactly wanted to know that how I can caculate the entropy of different values in a column
For example assume I have two columns
1.Water pipe type (CICL,DICL) and
2.the class type (y=0:fail,Y=1 non-fail)
I want to know how I can caculate the entropy of for example CICL pipelines based on their class type.
Actually the main set would be for example CICL data by y=0 and y=1 something like R={CICL1 ,CICL2}
How can I calculate the entropy of each of value of a column regards to the value of another column
Regards
Answers (1)
Youssef Khmou
on 11 Apr 2013
hi, try :
R=randn(100,2); % two columns
e1=entropy(R(:,1)); % CICL
e2=entropy(R(:,2)); % DICL
2 Comments
Mojgan
on 11 Apr 2013
Youssef Khmou
on 11 Apr 2013
hi, ok try to delimit the vector:
e1= entropy(CICL(1:4));
e2=entropy(CICL(5:end));
fine?
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!