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);
}
}
}