RiskAdjustedPerformanceCalculator { public double calculate(final double assetReturn, final double riskFreeReturn, final double assetStandardDeviation, final double marketStandardDeviation) { return (assetReturn - riskFreeReturn) * marketStandardDeviation / assetStandardDeviation + riskFreeReturn; }  double calculate(final double assetReturn, final double riskFreeReturn, final double assetStandardDeviation, final double marketStandardDeviation);  }
@Test public void test() { final double assetReturn = 0.12; final double riskFreeReturn = 0.03; final double assetStandardDeviation = 0.15; final double marketStandardDeviation = 0.17; assertEquals(new RiskAdjustedPerformanceCalculator().calculate(assetReturn, riskFreeReturn, assetStandardDeviation, marketStandardDeviation), 0.1320, 1e-4); }