class DoubleQuantizer {

    public static Quantizer<Double> withCompressionFactor(int compressionFactor) {
        return compressionFactor < 2 ? new TruncatingQuantizer() : new TruncatingAndCompressingQuantizer(compressionFactor);
    }

      DoubleQuantizer();

}