public static final class FeatureFilter.ByPairwiseScore extends Object implements OptimizableFilter
ByPairwiseScore
is used to filter
SimilarityPairFeature
s by their score. Features
are accepted if their score falls between the filter's minimum
and maximum values, inclusive. Features are rejected if they
are not SimilarityPairFeature
s. The minimum value
accepted must be less than the maximum value.FeatureFilter.And, FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySequenceName, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.Not, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.Or, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilter
all, leaf, none, top_level
Constructor and Description |
---|
ByPairwiseScore(double minScore,
double maxScore)
Creates a new
ByPairwiseScore . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Feature f)
Accept a Feature if it is an instance of
SimilarityPairFeature and its score is <= filter's minimum
score and >= filter's maximum score.
|
boolean |
equals(Object o) |
double |
getMaxScore()
getMaxScore returns the maximum score
accepted. |
double |
getMinScore()
getMinScore returns the minimum score
accepted. |
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter filt)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter sup)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
String |
toString() |
public ByPairwiseScore(double minScore, double maxScore)
ByPairwiseScore
.minScore
- a double
.maxScore
- a double
.public boolean accept(Feature f)
accept
in interface FeatureFilter
f
- a Feature
.boolean
.public double getMinScore()
getMinScore
returns the minimum score
accepted.double
.public double getMaxScore()
getMaxScore
returns the maximum score
accepted.double
.public boolean isProperSubset(FeatureFilter sup)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
sup
- the potential super setpublic boolean isDisjoint(FeatureFilter filt)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
Copyright © 2020 BioJava. All rights reserved.