src/main/java/org/apache/sysds/runtime/compress/BitmapEncoder.java
/**
	 * Given a Bitmap try to make a lossy version of the same bitmap.
	 * 
	 * @param ubm The Uncompressed version of the bitmap.
	 * @return A bitmap.
	 */
Given a Bitmap try to make a lossy version of the same bitmap.

@param ubm The Uncompressed version of the bitmap.
@return A bitmap.
Given a Bitmap try to make a lossy version of the same bitmap . @param ubm The Uncompressed version of the bitmap . @return A bitmap .
private static ABitmap makeBitmapLossy(Bitmap ubm) {
		final double[] fp = ubm.getValues();
		if(fp.length == 0) {
			return ubm;
		}
		Stats stats = new Stats(fp);
		if(Double.isInfinite(stats.max) || Double.isInfinite(stats.min)) {
			LOG.warn("Defaulting to incompressable colGroup");
			return ubm;
		}
		else {
			return make8BitLossy(ubm, stats);
		}
	}
private static ABitmap makeBitmapLossy ( Bitmap ubm ) { final double [ ] fp = ubm . getValues ( ) ; if ( fp . length == 0 ) { return ubm ; } Stats stats = new Stats ( fp ) ; if ( Double . isInfinite ( stats . max ) || Double . isInfinite ( stats . min ) ) { LOG . warn ( "Defaulting to incompressable colGroup" ) ; return ubm ; } else { return make8BitLossy ( ubm , stats ) ; } }
Given a Bitmap try to make a lossy version of the same bitmap.
Given a Bitmap try to make a lossy version of the same bitmap .
// TODO make better decisions than just a 8 Bit encoding.