[Biojava-dev] bits of information

Schreiber, Mark mark.schreiber at agresearch.co.nz
Sun Jun 1 19:21:44 EDT 2003


Hi -
 
The bitsOfInformation() method from DistributionTools seems to be returning only the average weighted entropy not the actual information.
 
Eg for a distribution made thus:
 
      //set the weight of a to 0.97
      dist.setWeight(DNATools.a(), 0.97);
      //set the others to 0.01
      dist.setWeight(DNATools.c(), 0.01);
      dist.setWeight(DNATools.g(), 0.01);
      dist.setWeight(DNATools.t(), 0.01);
 
The bits of information is calculated to be: 0.24194073285321088 bits
 
This strikes me as a bit low (excuse the pun). Possibly there should be a method called totalEntropy and bits of information should return log2(alpha size) - totalEntropy.
 
- Mark
 

=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================



More information about the biojava-dev mailing list