public interface LinearScaler extends Serializable
Scaling from a fixed point scaled representation f
to a floating point d
is generally done
by d = alpha + beta * f
Modifier and Type | Method and Description |
---|---|
double |
byteDiffSumToDouble(long diffSum)
Scale the sum of differences of bytes into double.
|
double |
byteDomainToDouble(double b)
Scale byte domain representation to the original.
|
double |
byteSqrDiffSumToDouble(long diffSqrSum)
Scale the square sum of differences of bytes into double.
|
float[] |
bytesToFloats(byte[] b)
Map
byteToFloat(byte) to an array. |
float |
byteToFloat(byte b)
Scale byte representation to float.
|
byte[] |
floatsToBytes(float[] f)
Map
floatToByte(float) to an array. |
short[] |
floatsToShorts(float[] f)
Map
floatToShort(float) to an array. |
byte |
floatToByte(float f)
Scale float into the byte representation.
|
short |
floatToShort(float f)
Scale float into the short representation.
|
double |
shortDiffSumToDouble(long diffSum)
Scale the sum of differences of shorts into double.
|
double |
shortDomainToDouble(double s)
Scale short domain representation to the original.
|
double |
shortSqrDiffSumToDouble(long diffSqrSum)
Scale the square sum of differences of shorts into double.
|
float[] |
shortsToFloats(short[] s)
Map
shortToFloat(short) to an array. |
float |
shortToFloat(short s)
Scale short representation to float.
|
float byteToFloat(byte b)
b
- Byte representation to scale.double byteDomainToDouble(double b)
b
- Value in scaled byte domain.double byteDiffSumToDouble(long diffSum)
diffSum
- Sum of the differences of byte representationsdouble byteSqrDiffSumToDouble(long diffSqrSum)
diffSqrSum
- Sum of the differences of byte representationsfloat[] bytesToFloats(byte[] b)
byteToFloat(byte)
to an array.b
- Array of bytesfloat shortToFloat(short s)
s
- Short to scaledouble shortDomainToDouble(double s)
s
- Value in scaled short domain.double shortDiffSumToDouble(long diffSum)
diffSum
- Sum of the differences of byte representationsdouble shortSqrDiffSumToDouble(long diffSqrSum)
diffSqrSum
- Sum of the differences of byte representationsfloat[] shortsToFloats(short[] s)
shortToFloat(short)
to an array.s
- Array of shortsbyte floatToByte(float f)
f
- Float valuebyte[] floatsToBytes(float[] f)
floatToByte(float)
to an array.f
- Array of floatsshort floatToShort(float f)
f
- Float valueshort[] floatsToShorts(float[] f)
floatToShort(float)
to an array.f
- Array of floats