LogPCHIP
- class randd.model.LogPCHIP(r, d, d_measure, ndim)
1D PCHIP rate-distortion function interpolator.
Bitrate is converted into log scale according to the reference below. 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.
References
https://chromium.googlesource.com/webm/contributor-guide/+/master/scripts/visual_metrics.py
- __call__(r)
Predict the distortion at the given representation.
- Parameters
r (NDArray) – Input encoding representation.
- Returns
Predicted distortion.
- Return type
NDArray