S
- each Sequence
of the alignment pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Cpublic class FractionalSimilarityScorer<S extends Sequence<C>,C extends Compound> extends AbstractScorer implements PairwiseSequenceScorer<S,C>
Compound
s.Constructor and Description |
---|
FractionalSimilarityScorer(PairwiseSequenceAligner<S,C> aligner)
Creates a fractional similarity scorer for a pair of sequences aligned by the given pairwise sequence aligner.
|
FractionalSimilarityScorer(SequencePair<S,C> pair)
Creates a fractional similarity scorer for an aligned pair of sequences.
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxScore()
Returns maximum possible score.
|
double |
getMinScore()
Returns minimum possible score.
|
S |
getQuery()
Returns the first sequence of the pair.
|
double |
getScore()
Returns score resulting from algorithm.
|
S |
getTarget()
Returns the second sequence of the pair.
|
getDistance, getDistance, getSimilarity, getSimilarity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistance, getDistance, getSimilarity, getSimilarity
public FractionalSimilarityScorer(PairwiseSequenceAligner<S,C> aligner)
aligner
- a pairwise sequence alignerpublic FractionalSimilarityScorer(SequencePair<S,C> pair)
pair
- an aligned pair of sequencespublic S getQuery()
PairwiseSequenceScorer
public S getTarget()
PairwiseSequenceScorer
public double getMaxScore()
Scorer
getMaxScore
in interface Scorer
public double getMinScore()
Scorer
getMinScore
in interface Scorer
public double getScore()
Scorer
Scorer.getScore()
- Scorer.getMinScore()
) / (Scorer.getMaxScore()
- Scorer.getMinScore()
).Copyright © 2000–2016 BioJava. All rights reserved.