public class SitesInFixedWindow extends Object
| Constructor and Description |
|---|
SitesInFixedWindow(int D)
Construct an instance with fixed window of length D.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int referenceIndex,
int position)
Add a site to the window.
|
int |
n()
Return the number of sites in the window.
|
void |
prune(int referenceIndex,
int position)
Move the window to a new forward location and prune sites that are outside the window.
|
public SitesInFixedWindow(int D)
D - length of the fixed window.public void add(int referenceIndex,
int position)
referenceIndex - index of the reference sequence where the site is located.position - position of the site on the reference sequence.public void prune(int referenceIndex,
int position)
referenceIndex - index of the reference sequence where the window should be moved.position - position of the site where the window should be moved.public int n()
Copyright © 2018 Campagne Laboratory. All rights reserved.