src/SequenceDNA.java
/**
     * returns the AT content of an interval of this sequence
     * @param interval the sequence interval defined by instance of SeqInterval
     * @return AT content as fraction
     */
returns the AT content of an interval of this sequence
@param interval the sequence interval defined by instance of SeqInterval
@return AT content as fraction
returns the AT content of an interval of this sequence @param interval the sequence interval defined by instance of SeqInterval @return AT content as fraction
double atContent(SeqInterval interval) {
        int numberAT = 0;
        for(int i = interval.start(); i < interval.end() + 1; i++) {
            if(sequence.charAt(i) == 'A' || sequence.charAt(i) == 'T') {
                numberAT++;
            }
        }
        return (double)numberAT/(interval.length());
    }
double atContent ( SeqInterval interval ) { int numberAT = 0 ; for ( int i = interval . start ( ) ; i < interval . end ( ) + 1 ; i ++ ) { if ( sequence . charAt ( i ) == 'A' || sequence . charAt ( i ) == 'T' ) { numberAT ++ ; } } return ( double ) numberAT / ( interval . length ( ) ) ; }
returns the AT content of an interval of this sequence
 @param interval the sequence interval defined by instance of SeqInterval
 @return AT content as fraction
returns the AT content of an interval of this sequence @param interval the sequence interval defined by instance of SeqInterval @return AT content as fraction