public abstract class AbstractPerimeterStatistics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[][] |
hopsCount |
private int |
maxRadius |
private int |
minRadius |
private int[][] |
reentranceCount |
private int[] |
totalCount |
Constructor and Description |
---|
AbstractPerimeterStatistics(Statistics statisticAtom,
Statistics statisticsHops)
This constructor limits the size of the perimeter.
|
Modifier and Type | Method and Description |
---|---|
int |
getHopsCount(int radius,
int offsetDegree) |
int |
getMinRadiusInSize()
Arbitrarily the minimum radius is 10
|
int |
getNextRadiusInSize(int radiusSize)
We increase the radius in 1 position, because it should be the most precise and agrees the best
with theory.
|
int |
getReentranceCount(int radius,
int offsetDegree) |
int |
getTotalCount(int radius) |
private final int[] totalCount
private int[][] hopsCount
private int[][] reentranceCount
private final int minRadius
private final int maxRadius
public AbstractPerimeterStatistics(Statistics statisticAtom, Statistics statisticsHops)
statisticAtom
- statisticsHops
- public int getTotalCount(int radius)
public int getReentranceCount(int radius, int offsetDegree)
public int getHopsCount(int radius, int offsetDegree)
public int getNextRadiusInSize(int radiusSize)
radiusSize
- current radius sizepublic int getMinRadiusInSize()