encoder.js
function getFloatDeltaScale(t, scale) {
	if (scale === DELTASCALE.S_1)
		return 1.0;
	else if (scale === DELTASCALE.S_001)
		return 0.01;
	else {
		var multiplier = 1.0;
		if (scale === DELTASCALE.S_R00) multiplier = 100.0;
		// Check for INT8 target
		if ( ((t >= 0) && (t <= 3)) || (t === 6) ) {
			return multiplier * INT8_MAX;
		} else {
			return multiplier * INT16_MAX;
		}
	}
}
function getFloatDeltaScale(t, scale) {
	if (scale === DELTASCALE.S_1)
		return 1.0;
	else if (scale === DELTASCALE.S_001)
		return 0.01;
	else {
		var multiplier = 1.0;
		if (scale === DELTASCALE.S_R00) multiplier = 100.0;
		// Check for INT8 target
		if ( ((t >= 0) && (t <= 3)) || (t === 6) ) {
			return multiplier * INT8_MAX;
		} else {
			return multiplier * INT16_MAX;
		}
	}
}
function getFloatDeltaScale ( t , scale ) { if ( scale === DELTASCALE . S_1 ) return 1.0 ; else if ( scale === DELTASCALE . S_001 ) return 0.01 ; else { var multiplier = 1.0 ; if ( scale === DELTASCALE . S_R00 ) multiplier = 100.0 ; // Check for INT8 target if ( ( ( t >= 0 ) && ( t <= 3 ) ) || ( t === 6 ) ) { return multiplier * INT8_MAX ; } else { return multiplier * INT16_MAX ; } } }
Get the scale factor for the specified float-based delta encoding
using the NUMTYPE_DOWNSCALE and DELTASCALE provided.

@param {int} t - The NUMTYPE_DOWNSCALE used in the encoding
@param {int} scale - The DELTASCALE used in the encoding
@return {float} - Return the scale factor
Get the scale factor for the specified float - based delta encoding using the NUMTYPE_DOWNSCALE and DELTASCALE provided .