
1 文本格式
using System;
namespace Legalsoft.Truffer
{
public interface RBF_fn
{
double rbf(double r);
}
}
----------------------------------------------
using System;
namespace Legalsoft.Truffer
{
public class RBF_gauss : RBF_fn
{
private double r0 { get; set; }
public RBF_gauss(double scale = 1.0)
{
this.r0 = scale;
}
public double rbf(double r)
{
return Math.Exp(-0.5 * Globals.SQR(r / r0));
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public interface RBF_fn
{
double rbf(double r);
}
}
using System;
namespace Legalsoft.Truffer
{
public class RBF_gauss : RBF_fn
{
private double r0 { get; set; }
public RBF_gauss(double scale = 1.0)
{
this.r0 = scale;
}
public double rbf(double r)
{
return Math.Exp(-0.5 * Globals.SQR(r / r0));
}
}
}


![[架构之路-253]:目标系统 - 设计方法 - 软件工程 - 软件设计 - 结构化设计的主要评估指标:高内聚(模块内部)、低耦合(模块之间)的含义](https://img-blog.csdnimg.cn/7b19b78f610a4ca1a94d03f7cf4c745c.png)
![[设计模式] 常见的设计模式](https://img-blog.csdnimg.cn/img_convert/cb3cc887fc5cb970ba3ac6e122ad1121.png)















