Electronic Stethoscope for Smartphone

At our lab (Biomedical Physics and Technology Department at University of Dhaka), we have developed a smartphone powered electronic stethoscope system. It’s a small low-cost device, requires no battery and can be attached to a smartphone. Details are coming…

Smartphone powered Electronic Stethoscope System
OTG powered electronic stethoscope amplifier
Internal Circuit of the Amplifier

Voluntary Coding #1

Problem: 3. A simple measure of how complex a sequence is would be the count of the most frequent character n-gram, divided by the count of all n-grams. For example, if n is 3, then the sequence ATATATATAG contains 4x ATA, 3x TAT and 1x TAG. The proportion is thus 4/8=0.5. The higher this number, the more repetitive the sequence.

Write a function simple(s,n) where s is a sequence and n is the length of the n-gram to consider. The function will return the proportion described above.

Continue reading “Voluntary Coding #1”