Package org.biojavax.bio.seq
Class PositionResolver.AverageResolver
java.lang.Object
org.biojavax.bio.seq.PositionResolver.AverageResolver
- All Implemented Interfaces:
PositionResolver
- Enclosing interface:
PositionResolver
The minimal resolver returns the base which provides the
average range, halfway between maximal and minimal.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojavax.bio.seq.PositionResolver
PositionResolver.AverageResolver, PositionResolver.MaximalResolver, PositionResolver.MinimalResolver
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AverageResolver
public AverageResolver()
-
-
Method Details
-
getMin
Resolves the minimum possible base for this position. ALWAYS RETURNS s.getStart()+s.getEnd() / 2- Specified by:
getMin
in interfacePositionResolver
- Parameters:
s
- the position to resolve- Returns:
- the minimum possible base this resolver can return.
-
getMax
Resolves the maximum possible base for this position. ALWAYS RETURNS e.getStart()+e.getEnd() / 2- Specified by:
getMax
in interfacePositionResolver
- Parameters:
e
- the position to resolve- Returns:
- the maximum possible base this resolver can return.
-