alglib 的 spline2dbuildbicubic 错误
Error with spline2dbuildbicubic of alglib
我想做一个双三次 2D 样条插值。为此,我选择使用库 Alglib。我有两个向量 xs 和 ys 以及一个矩阵幅度。根据我写的文档(量级是双 [N,27]):
for (int i = 0; i < 27; i++)
{
ys[i] = i;
}
for (int i = 0; i < N; i++)
{
xs[i] = i;
}
alglib.spline2dbuildbicubic(xs, ys,magnitudes,N, 27, out f);
我得到异常 "alglib+alglibexception: Exception of type 'alglib+alglibexception' was thrown."
你必须写:
alglib.spline2dbuildbicubic(ys,xs,magnitudes,N,27,out f);
看看here.
我想做一个双三次 2D 样条插值。为此,我选择使用库 Alglib。我有两个向量 xs 和 ys 以及一个矩阵幅度。根据我写的文档(量级是双 [N,27]):
for (int i = 0; i < 27; i++)
{
ys[i] = i;
}
for (int i = 0; i < N; i++)
{
xs[i] = i;
}
alglib.spline2dbuildbicubic(xs, ys,magnitudes,N, 27, out f);
我得到异常 "alglib+alglibexception: Exception of type 'alglib+alglibexception' was thrown."
你必须写: alglib.spline2dbuildbicubic(ys,xs,magnitudes,N,27,out f);
看看here.