RawScaling { public static double scale(final long raw, final DType version, final boolean filtered) { switch (version) { case G6v1: return raw * 34; case G6v2: return (raw - 1151500000) / 110; default: return raw; } }  static double scale(final long raw, final DType version, final boolean filtered); static double scale(final long raw, final String transmitter_id, final boolean filtered);  }
@Test public void scaleTest() { assertWithMessage("G5 1").that((int) RawScaling.scale(10000, RawScaling.DType.G5, false)).isEqualTo(10000); assertWithMessage("G6v1 1").that((int) RawScaling.scale(294, RawScaling.DType.G6v1, false)).isEqualTo(9996); assertWithMessage("G6v2 1").that((int) RawScaling.scale(1168582904, RawScaling.DType.G6v2, false)).isEqualTo(155299); }