cleverly.bases.Cosine#
- class cleverly.bases.Cosine(columns: Sequence[str], size: int = 1, domains: Mapping[str, tuple[float, float]] | tuple[tuple[str, tuple[float, float]], ...] = (), intercept: bool = True)[source]#
Cosines of each modifier on its declared domain.
Column \(j = 1, \ldots, \text{size}\) of modifier \(v\) on the domain \([l, h]\) is \(\sqrt 2 \cos(j \pi (v - l)/(h - l))\), orthonormal under the uniform law on the domain. The domain comes from
domainsor from the declaredModifiers, never from the rows.
Methods#
Attributes#
- Cosine.domains: Mapping[str, tuple[float, float]] | tuple[tuple[str, tuple[float, float]], ...] = ()#
- Cosine.max_size#
The declared size.