1 文本格式
using System;
namespace Legalsoft.Truffer
{
public class RBF_multiquadric : RBF_fn
{
private double r02 { get; set; }
public RBF_multiquadric(double scale = 1.0)
{
this.r02 = Globals.SQR(scale);
}
public double rbf(double r)
{
return Math.Sqrt(Globals.SQR(r) + r02);
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public class RBF_multiquadric : RBF_fn
{
private double r02 { get; set; }
public RBF_multiquadric(double scale = 1.0)
{
this.r02 = Globals.SQR(scale);
}
public double rbf(double r)
{
return Math.Sqrt(Globals.SQR(r) + r02);
}
}
}