protected Function(Dictionary d) {
        Vector dom = (Vector) d.getObject("Domain");
        domain = new float[dom.size()];
        for (int i = 0; i < dom.size(); i++) {
            domain[i] = ((Number) dom.elementAt(i)).floatValue();
        }
        Vector r = (Vector) d.getObject("Range");
        if (r != null) {
            range = new float[r.size()];
            for (int i = 0; i < r.size(); i++) {
                range[i] = ((Number) r.elementAt(i)).floatValue();
            }
        }
    }