Class IntervalQuantizationEncoding

java.lang.Object
org.rcsb.cif.binary.encoding.IntervalQuantizationEncoding
All Implemented Interfaces:
Encoding<FloatArray,​Int32Array>

public class IntervalQuantizationEncoding
extends Object
implements Encoding<FloatArray,​Int32Array>

Converts an array of floating point numbers to a Int32Array where the values are quantized within a given interval into specified number of discrete steps. Values lower than the minimum value or greater than the maximum are represented by the respective boundary values.

 FixedPoint {
     kind = "IntervalQuantization"
     min: number,
     max: number,
     numSteps: number,
     srcType: Float32 | Float64
 }
 Example
 [0.5, 1, 1.5, 2, 3, 1.345 ]
 ---IntervalQuantization--->
 { min = 1, max = 2, numSteps = 3 } [0, 0, 1, 2, 2, 1]