imate.InterpolateSchatten.interpolate#

InterpolateSchatten.interpolate(t)#

Interpolate at the input point t.

Note

You may alternatively, call InterpolateSchatten.__call__() method.

Parameters:
tfloat or array_like[float]

An inquiry point (or list of points) to interpolate.

Returns:
normfloat or numpy.array

Interpolated values. If the input t is a list or array, the output is an array of the same size of t.

Examples

>>> # 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, ti=ti)

>>> # Interpolate at an inquiry point t = 0.4
>>> t = 4e-1
>>> f.interpolate(t)
1.7116166617477382

>>> # Array of input points
>>> t = [4e-1, 4, 4e+1]
>>> f.interpolate(t)
array([ 1.71161666,  5.09395567, 41.32038322])