class SampledXYSeries implements FastXYSeries, OrderedXYSeries {

    protected static int getZoomIndex(double zoomFactor, double ratio) {
        final double lhs = Math.log(zoomFactor);
        final double rhs = Math.log(ratio);
        final double log = lhs / rhs;
        final int index = (int) Math.round(log);
        return index > 0 ? index - 1 : 0;
    }

    public  SampledXYSeries(XYSeries rawData, XOrder xOrder, float ratio, int threshold);
    public  SampledXYSeries(XYSeries rawData, float ratio, int threshold);

}