Package vcf
Class Steps
java.lang.Object
vcf.Steps
Class Steps
represents a partition of a list of markers into
a sequence of sets of consecutive markers (the steps).
Instances of class Steps
are immutable.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Steps
Constructs a newSteps
instance from the specified data.- Parameters:
map
- the marker mapminStep
- the minimum distance between the first markers in consecutive steps- Throws:
IllegalArgumentException
- ifminStep <= 0f || Float.isFinite(minStep) == false
NullPointerException
- ifmap == null
-
-
Method Details
-
size
public int size()Returns the number of steps.- Returns:
- the number of steps
-
start
public int start(int step) Returns the index of the first marker in the specified step.- Parameters:
step
- a step index- Returns:
- the index of the first marker in the specified step
- Throws:
IllegalArgumentException
- ifstep < 0 || step >= this.nSteps()
-
end
public int end(int step) Returns the index of the last marker (exclusive) in the specified step.- Parameters:
step
- a step index- Returns:
- the index of the last marker (exclusive) in the specified step
- Throws:
IllegalArgumentException
- ifstep < 0 || step >= this.nSteps()
-
map
Return the marker map.- Returns:
- the marker map
-