Linear
- class randd.model.Linear(r, d, d_measure='psnr', ndim=1)
1D Linear rate-distortion function interpolator.
Extrapolation is enabled, but not always reliable.
- Parameters
r (NDArray) – Encoding representations.
d (NDArray) – Corresponding distortions.
d_measure (str) – Name of the distortion measure.
ndim (int) – Number of dimensions of the RD function domain.
- __call__(r)
Predict the distortion at the given representation.
- Parameters
r (NDArray) – Input encoding representation.
- Returns
Predicted distortion.
- Return type
NDArray