C#,数值计算——插值和外推,径向基函数插值(RBF_inversemultiquadric)的计算方法与源程序
1 文本格式
using System;
namespace Legalsoft.Truffer
{
public class RBF_inversemultiquadric : RBF_fn
{
private double r02 { get; set; }
public RBF_inversemultiquadric(double scale = 1.0)
{
this.r02 = Globals.SQR(scale);
}
public double rbf(double r)
{
return 1.0 / Math.Sqrt(Globals.SQR(r) + r02);
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public class RBF_inversemultiquadric : RBF_fn
{
private double r02 { get; set; }
public RBF_inversemultiquadric(double scale = 1.0)
{
this.r02 = Globals.SQR(scale);
}
public double rbf(double r)
{
return 1.0 / Math.Sqrt(Globals.SQR(r) + r02);
}
}
}