ScaleContig { static int logDistance(long distance) { return (int) Math.floor(Math.pow(Math.log10(distance), 3)) + 10; } @VisibleForTesting  ScaleContig(@NotNull final String contig, Map<Long, Integer> positionMap);   ScaleContig(@NotNull final String contig, @NotNull final List<Long> positions); boolean isEmpty(); String contig(); int length(); void expand(double factor); int scale(long position); int interpolate(long value);  }
@Test public void testLogDistance() { assertEquals(SCALE_1, ScaleContig.logDistance(1)); assertEquals(SCALE_10, ScaleContig.logDistance(10)); assertEquals(SCALE_100, ScaleContig.logDistance(100)); assertEquals(SCALE_1000, ScaleContig.logDistance(1000)); }