public class ConvertTupleDescOps
extends java.lang.Object
| Constructor and Description |
|---|
ConvertTupleDescOps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
positive(TupleDesc_F64 input,
TupleDesc_U8 output)
Converts a floating point description with all positive values into the 8-bit integer descriptor by
dividing each element in the input by the element maximum value and multiplying by 255.
|
static void |
real(TupleDesc_F64 input,
TupleDesc_S8 output)
Converts a floating point description with real values into the 8-bit integer descriptor by
dividing each element in the input by the element maximum absolute value and multiplying by 127.
|
public static void positive(TupleDesc_F64 input, TupleDesc_U8 output)
input - Description with elements that are all positiveoutput - Unsigned 8-bit outputpublic static void real(TupleDesc_F64 input, TupleDesc_S8 output)
input - Description with elements that are all positiveoutput - Unsigned 8-bit output