50 for (
int i = 0;i < n;i++)
51 t[i] = (0.54 - 0.46 *
std::cos(2.0 *
pi * i / (n - 1)));
60 for (
int i = 0;i < n;i++)
61 t(i) = 0.5 * (1.0 -
std::cos(2.0 *
pi * (i + 1) / (n + 1)));
71 for (
int i = 0;i < n;i++)
72 t(i) = 0.5 * (1.0 -
std::cos(2.0 *
pi * i / (n - 1)));
81 for (
int i = 0;i < n;i++)
92 for (
int i = 0; i < n / 2; i++)
93 t(i) = t(n - i - 1) = 2.0 * (i + 1) / (n + 1);
97 for (
int i = 0; i < n / 2; i++)
98 t(i) = t(n - i - 1) = (2.0 * i + 1) / n;
108 for (
int i = 0; i < n / 2; i++)
109 t(i) = t(n - i - 1) =
std::sqrt(2.0 * (i + 1) / (n + 1));
113 for (
int i = 0; i < n / 2; i++)
114 t(i) = t(n - i - 1) =
std::sqrt((2.0 * i + 1) / n);
121 it_assert((n > 0),
"chebwin(): need a positive order n!");
127 at = at < 0 ? -at : at;
133 vec p =
cheb(n - 1, beta * cos_k);
139 int half_length = n / 2 + 1;
140 w = w.left(half_length) / w(1);
145 int half_length = (n + 1) / 2;
146 w = w.left(half_length) / w(0);