class RiskRatio {

    public static double compute(Number exposedInlierCount,
                                 Number exposedOutlierCount,
                                 Number totalInliers,
                                 Number totalOutliers) {
        if(exposedInlierCount == null) {
            exposedInlierCount = 0.;
        }

        if(exposedOutlierCount == null) {
            exposedOutlierCount = 0.;
        }

        if(totalInliers == null) {
            totalInliers = 0.;
        }

        if(totalOutliers == null) {
            totalOutliers = 0.;
        }

        return computeDouble(exposedInlierCount.doubleValue(),
                             exposedOutlierCount.doubleValue(),
                             totalInliers.doubleValue(),
                             totalOutliers.doubleValue());
    }

}