class CategorizedReal extends CategorizedLegend<Double> {

    @Override
    public Double get(Double d){
        if(parameter instanceof RealLiteral){
            return Double.isInfinite(d) && d < 0 ? ((RealLiteral) parameter).getValue(null) : null;
        } else {
            try{
                RealParameter sp = ((Categorize2Real)parameter).get(new RealLiteral(d));
                return sp == null ? null : sp.getValue(null);
            } catch (ParameterException pe){
                throw new IllegalArgumentException("Can't process the input value: "+d, pe);
            }
        }
    }

    public  CategorizedReal(RealParameter sp);

}