列表 第页
输入:随机向量X =喜,I = 1..N 。手段对于x向量= meanxi,I = 1..N 输出:协方差矩阵西格玛(N * N)。计算: 1)找到所有的COV(XI,XJ)= 1 / N *(XI-meanxi)*(XJ-meanxj),I,J = 1 ... N 2)西格玛(I,J)= COV(XI,XJ)...阅读全文
我写一个函数拿两个向量之间的马氏距离。据我所知,这是使用以下方程的'* C ^ -1 * b,其中a和b是矢量,C是协方差矩阵来实现的。我的问题是,有没有一种有效的方法,找到矩阵的逆而不使用高斯 - 约旦消去,或者是有没有办法解决这个?我正在寻找一种方式来做到这一点我自己,不与任何predefined功能。I am...阅读全文
奇怪的问题... 从伊夫例如实施协方差。Ive implemented covariance from example .我的目标FW为4.0。My target FW is 4.0.如何过。我想看看如果失败3.5 / 2 - >,但它不会。 How ever . I wanted to see if i...阅读全文
我看到乔恩斯基特的讲座在NDC 2010 I saw Jon Skeet's lecture at the NDC 2010他提到的一些有趣的事情:He mentioned something interesting : public Class Base{public void Foo(IEnumerab...阅读全文
是honest- IVE问(这个问题的一部分)here但现在我有一个不同的 - 有关的问题to be honest- ive asked (a part of this question) herebut now i have a different - related question.public clas...阅读全文
在定义了这个接口:public interface IInputBoxService {bool ShowDialog();T Result { get; }}为什么以下code的工作:Why does the following code work:public class StringInpu...阅读全文
我需要一些建议/在这方面的帮助,我不能看到木从树上了。I need some advice/help on this, I can't see the wood from the trees any more.这是一个简单的一系列类实现使用泛型一些接口。It's a straight forward series...阅读全文
在回答另一个question我试图做到以下几点。我不认为我跨$ P $正确PTED这个问题,但我不知道下面有可能以某种方式(我尝试都失败了),如果不是为什么不:公共类MyBaseClass {}公共类MyClass的:MyBaseClass {}公共类B< T> {}公共类A< T> :B&LT...阅读全文
该用例是一些什么样的:The use case is some what like this:public class SomeClass: IClonable{// Some Code//Implementing interface methodPublic object Clone(){//Some Clonn...阅读全文
有谁知道为什么变的返回类型不支持在C#中?甚至试图使用一个接口时,编译器会抱怨,这是不允许的。请看下面的例子。Does anyone know why covariant return types are not supported in C#? Even when attempting to use an inte...阅读全文
我想一个协变集的项目可以通过索引进行检索。 IEnumerable的是唯一的.NET集合,我所知道的是协变,但它并没有这个指标的支持。I would like a Covariant collection whose items can be retrieved by index. IEnumerable is t...阅读全文
由于以下几种类型:public interface IMyClass { }public class MyClass : IMyClass { }我不知道我怎么可以转换名单,其中,MyClass的> 到名单,其中,IMyClass> ?我不是协方差/逆变主题完全清楚,但我知道我不能只说白投,因为该列...阅读全文