edu.rit.compbio.phyl
Interface Distance
-
- All Known Implementing Classes:
- HammingDistance, JukesCantorDistance
public interface DistanceInterface Distance specifies the interface for an object that computes the distance between two DnaSequences.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doubledistance(DnaSequence seq1, DnaSequence seq2)Compute the distance between the two given DNA sequences.
-
-
-
Method Detail
-
distance
double distance(DnaSequence seq1, DnaSequence seq2)
Compute the distance between the two given DNA sequences. It is assumed that the DNA sequences are the same length.- Parameters:
seq1- First DNA sequence.seq2- Second DNA sequence.- Returns:
- Distance.
-
-
DMelt 3.0 © DataMelt by jWork.ORG