imate.InterpolateSchatten.get_scale#
- InterpolateSchatten.get_scale()#
Returns the scale parameter of the interpolator.
This function can be called if
kind=crforkind=spl.- Returns:
- scalefloat
Scale parameter of the interpolator.
- Raises:
- NotImplementedError
If
kindis notcrf.
Examples
In the following scale, since the input argument
scaleis set to None, it i automatically generated by optimization. Its value can be accessed byimate.InterpolateSchatten.get_scale()function.>>> # Generate two sample matrices (symmetric positive-definite) >>> from imate.sample_matrices import correlation_matrix >>> A = correlation_matrix(size=20, scale=1e-1) >>> # Initialize interpolator object >>> from imate import InterpolateSchatten >>> ti = [1e-2, 1e-1, 1, 1e1] >>> f = InterpolateSchatten(A, p=2, kind='crf', ti=ti, scale=None) >>> f.get_scale() 1.4101562500000009