public static class **Tensor.QuantizationParams** Quantization parameters that corresponds to the table, `QuantizationParameters`, in the
[TFLite
Model schema file.](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/schema/schema.fbs)

Since per-channel quantization does not apply to input and output tensors, `scale` and
`zero_point` are both single values instead of arrays.

For tensor that are not quantized, the values of scale and zero_point are both 0.

Given a quantized value q, the corresponding float value f should be:   

f = scale \* (q - zero_point)   

<br />

<br />

<br />

### Public Constructors

|---|---|
|   | [QuantizationParams](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/Tensor.QuantizationParams#QuantizationParams(float,%20int))(float scale, int zeroPoint) Creates a `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/Tensor.QuantizationParams` with `scale` and `zero_point`. |

### Public Methods

|---|---|
| float | [getScale](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/Tensor.QuantizationParams#getScale())() Returns the scale value. |
| int | [getZeroPoint](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/Tensor.QuantizationParams#getZeroPoint())() Returns the zero point value. |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Constructors

#### public
**QuantizationParams**
(float scale, int zeroPoint)

Creates a `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/Tensor.QuantizationParams` with `scale` and `zero_point`.

##### Parameters

| scale | The scale value used in quantization. |
| zeroPoint | The zero point value used in quantization. |
|---|---|

## Public Methods

#### public float
**getScale**
()

Returns the scale value.

#### public int
**getZeroPoint**
()

Returns the zero point value.