本文整理汇总了C#中IVector类的典型用法代码示例。如果您正苦于以下问题:C# IVector类的具体用法?C# IVector怎么用?C# IVector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IVector类属于命名空间,在下文中一共展示了IVector类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Test
/// <summary>
/// �����U���̌����s���D
/// </summary>
/// <param name="set1">����ΏۂƂȂ鐔�l�Q</param>
/// <param name="set2">����ΏۂƂȂ鐔�l�Q</param>
/// <param name="level">�L�Ӑ���</param>
/// <param name="p">p�l���i�[�����iout�j</param>
/// <param name="f">���蓝�v�ʁi��Βl�j���i�[�����iout�j</param>
/// <returns>true�̏ꍇ�́u�L�Ӎ�����v�Cfalse�̏ꍇ�́u�L�Ӎ������v��Ӗ�����</returns>
public static bool Test(IVector set1, IVector set2, double level, out double p, out double f)
{
int size1 = set1.Size;
int size2 = set2.Size;
if (size1 < 2 || size2 < 2)
{
throw new Exception.IllegalArgumentException();
}
// ���v��
double u1 = set1.Variance;
double u2 = set2.Variance;
int dof1, dof2;
if (u1 > u2)
{
f = u1 / u2;
dof1 = size1 - 1;
dof2 = size2 - 1;
}
else
{
f = u2 / u1;
dof1 = size2 - 1;
dof2 = size1 - 1;
}
p = GSL.Functions.cdf_fdist_Q(f, dof1, dof2);
return p <= level;
}
开发者ID:ryujimiya,项目名称:HPlaneWGSimulator,代码行数:41,代码来源:VarTest.cs
示例2: ArcByCenterPointStartPointSweepAngle
public IArcEntity ArcByCenterPointStartPointSweepAngle(IPointEntity centerPoint, IPointEntity startPoint, double sweepAngle, IVector normal)
{
DSGeometryApplication.Check();
double radius = startPoint.DistanceTo(centerPoint);
double startAngle = 30;
return new ArcEntity(centerPoint, normal, radius, startAngle, sweepAngle);
}
开发者ID:samuto,项目名称:designscript,代码行数:7,代码来源:GeometryFactory.cs
示例3: MismatchSize
/// <summary>
/// �����Ɏw�肳�ꂽ�x�N�g���̃T�C�Y����v���邱�Ƃ
|
请发表评论