Chebyshev - rebuilt with polysynth¶

In [1]:
%matplotlib inline
import warnings; warnings.filterwarnings("ignore")
import numpy as np
import matplotlib.pyplot as plt
import polysynth as ps

Basis¶

Chebyshev 1st & 2nd kind from the library; weighted variants via ps.Weighted.

In [2]:
cheb_t_w = ps.Weighted(ps.ChebyshevT(), lambda x: 1 / np.sqrt(1 - x**2) ** 0.5, "chebyshev_1st_weighted")
cheb_u_w = ps.Weighted(ps.ChebyshevU(), lambda x: np.sqrt(1 - x**2) ** 0.5, "chebyshev_2nd_weighted")

Visualization¶

1-D basis functions.

In [3]:
ps.plot_1d([ps.ChebyshevT(), ps.ChebyshevU(), cheb_t_w, cheb_u_w], n_max=8);
No description has been provided for this image

Masks Visualization¶

Random-coefficient fields (normalized to [0, 1]); each binary panel thresholds the same field at 0.5.

In [4]:
ps.plot_field_grid(ps.ChebyshevT(), 6, seed=0);
No description has been provided for this image
In [5]:
ps.plot_field_grid(ps.ChebyshevT(), 6, seed=0, binary=True);
No description has been provided for this image
In [6]:
ps.plot_field_grid(ps.ChebyshevT(), 8, seed=1);
No description has been provided for this image
In [7]:
ps.plot_field_grid(ps.ChebyshevT(), 8, seed=1, binary=True);
No description has been provided for this image
In [8]:
ps.plot_field_grid(ps.ChebyshevT(), 12, seed=2);
No description has been provided for this image
In [9]:
ps.plot_field_grid(ps.ChebyshevT(), 12, seed=2, binary=True);
No description has been provided for this image
In [10]:
ps.plot_field_grid(ps.ChebyshevU(), 6, seed=3);
No description has been provided for this image
In [11]:
ps.plot_field_grid(ps.ChebyshevU(), 6, seed=3, binary=True);
No description has been provided for this image
In [12]:
ps.plot_field_grid(cheb_u_w, 6, seed=4);
No description has been provided for this image
In [13]:
ps.plot_field_grid(cheb_u_w, 6, seed=4, binary=True);
No description has been provided for this image