本文整理汇总了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());
}
示例2: MismatchRowsTestforSolveMatrix
public void MismatchRowsTestforSolveMatrix()
{
FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10);
FloatMatrix X = fsl.Solve(I5);
}
示例3: NullParameterTestforSolveMatrix
public void NullParameterTestforSolveMatrix()
{
FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10);
FloatMatrix X = fsl.Solve(null as FloatMatrix);
}
示例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());
}
示例5: MismatchRowsTestforSolveVector
public void MismatchRowsTestforSolveVector()
{
FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10);
FloatVector X = fsl.Solve(X5);
}
示例6: NullParameterTestforSolveVector
public void NullParameterTestforSolveVector()
{
FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10);
FloatVector X = fsl.Solve(null as FloatVector);
}