### Question:
LinearWeightingFunction implements WeightingFunction { @Override public double getWeight(double y) { ArgChecker.inRangeInclusive(y, 0d, 1d, "y"); return y; } private  LinearWeightingFunction(); @Override double getWeight(double y); @Override String getName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testWeighting() { assertThat(getInstance().getWeight(STRIKES, INDEX, STRIKE)).isCloseTo(0.55, offset(EPS)); assertThat(getInstance().getWeight(STRIKES, INDEX, STRIKES[3])).isCloseTo(1, offset(EPS)); }