当前位置: 首页>>代码示例>>C#>>正文


C# FloatSymmetricLevinson.Solve方法代码示例

本文整理汇总了C#中Altaxo.Calc.LinearAlgebra.FloatSymmetricLevinson.Solve方法的典型用法代码示例。如果您正苦于以下问题:C# FloatSymmetricLevinson.Solve方法的具体用法?C# FloatSymmetricLevinson.Solve怎么用?C# FloatSymmetricLevinson.Solve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo.Calc.LinearAlgebra.FloatSymmetricLevinson的用法示例。

在下文中一共展示了FloatSymmetricLevinson.Solve方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SolveMatrix10

    public void SolveMatrix10()
    {
      int i, j;
      float e, me;
      FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10);

      // check inverse
      FloatMatrix I = fsl.Solve(FloatMatrix.CreateIdentity(10));
      me = 0.0f;
      for (i = 0; i < fsl.Order; i++)
      {
        for (j = 0; j < fsl.Order; j++)
        {
          e = System.Math.Abs((I10[i, j] - I[i, j]) / I10[i, j]);
          if (e > me)
          {
            me = e;
          }
        }
      }
      Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:FloatSymmetricLevinsonTest.cs


示例2: MismatchRowsTestforSolveMatrix

 public void MismatchRowsTestforSolveMatrix()
 {
   FloatSymmetricLevinson  fsl = new FloatSymmetricLevinson(T10);
   FloatMatrix X = fsl.Solve(I5);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:FloatSymmetricLevinsonTest.cs


示例3: NullParameterTestforSolveMatrix

 public void NullParameterTestforSolveMatrix()
 {
   FloatSymmetricLevinson  fsl = new FloatSymmetricLevinson(T10);
   FloatMatrix X = fsl.Solve(null as FloatMatrix);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:FloatSymmetricLevinsonTest.cs


示例4: SolveVector10

 public void SolveVector10()
 {
   int i;
   float e, me;
   FloatSymmetricLevinson  fsl = new FloatSymmetricLevinson(T10);
   FloatVector X = fsl.Solve(Y10);
   
   // determine the maximum error
   me = 0.0f;
   for (i = 0; i < fsl.Order; i++)
   {
     e = System.Math.Abs((X10[i] - X[i]) / X10[i]);
     if (e > me)
     {
       me = e;
     }
   }
   Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:19,代码来源:FloatSymmetricLevinsonTest.cs


示例5: MismatchRowsTestforSolveVector

 public void MismatchRowsTestforSolveVector()
 {
   FloatSymmetricLevinson  fsl = new FloatSymmetricLevinson(T10);
   FloatVector X = fsl.Solve(X5);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:FloatSymmetricLevinsonTest.cs


示例6: NullParameterTestforSolveVector

 public void NullParameterTestforSolveVector()
 {
   FloatSymmetricLevinson  fsl = new FloatSymmetricLevinson(T10);
   FloatVector X = fsl.Solve(null as FloatVector);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:FloatSymmetricLevinsonTest.cs



注:本文中的Altaxo.Calc.LinearAlgebra.FloatSymmetricLevinson.Solve方法示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。