- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我知道 eig(A) 生成的特征向量具有 2-范数 1。但是在广义特征值问题 eig(A,B) 中生成的向量又如何呢?一个自然的猜想是这样的向量v应该满足v'Bv=1。当 B 是单位矩阵时,v'Bv 恰好是 2-范数的平方。我对各种矩阵 A 和 B 进行了以下测试:
[p,d]=eig(A,B);
v=p(:,1);
v'*B*v
我总是选择 B 为对角线。我注意到 v'Bv 并不总是 1。然而,当 A 对称时它确实是 1。有谁知道Matlab标准化广义特征向量的规则吗?我在文档中找不到它。
最佳答案
根据the documentation (强调我的):
The form and normalization of V depends on the combination of input arguments:
[...]
[V,D] = eig(A,B)
and[V,D] = eig(A,B,algorithm)
returnsV
as a matrix whose columns are the generalized right eigenvectors that satisfyA*V = B*V*D
. The 2-norm of each eigenvector is not necessarily 1. In this case,D
contains the generalized eigenvalues of the pair, (A
,B
), along the main diagonal.When
eig
uses the'chol'
algorithm with symmetric (Hermitian)A
and symmetric (Hermitian) positive definiteB
, it normalizes the eigenvectors inV
so that theB
-norm of each is 1.
这意味着,除非您使用 'chol'
算法,否则 V
不会标准化。
关于matlab - Matlab如何标准化广义特征向量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54150327/
这是我感兴趣的测试: http://www.itl.nist.gov/div898/handbook/eda/section3/eda35h3.htm 如何将这段代码改编成接受数值向量并返回指定要删除
我使用 TensorFlow 1.12 基于 Material 进行语义(图像)分割。使用多项式交叉熵损失函数,这会产生不错的结果,尤其是考虑到我使用的训练数据量稀疏,mIoU 为 0.44: 然而,
AFAIK,在 Hindley-Milner 类型系统中使用的统一可以通过在构造函数位置允许类型变量并在这种情况下放宽 arity 约束来推广以统一更高级的类型: f a ~ T a1 b1 f ~
在阅读 article 时在 Javascript 中实现通用 curry 时,我偶然发现了这段代码。 function curry(fn) { return (...xs) => { i
我想使用 C++14 中引入的广义 lambda 捕获(有关解释,请参阅 Move capture in lambda)。但是,我的代码的其余部分是 C++11 友好的。我想按照以下方式做一些事情 #
我正在尝试实现 this paper 中介绍的广义 Hough 变换在 MATLAB 中。我也试过使用 this document理解算法。我一直在研究如何计算梯度角以找到要在 R 表中使用的 Φ。
假设我们有这样一段代码: std::vector> tasks; 然后我们添加这样的任务: tasks.push_back([]() { // ... } 这行得通。但现在我们要添加该任务:
问题:为什么会打印出以下内容: ChildB___Parent of ChildB ChildB___Parent of ChildB 而不是我认为它应该打印出来的: ChildA___Parent
W3C 推荐 RDF 1.1 概念和抽象语法 defines多么广义 RDF 三元组 是(即,一个非标准三元组,其中每个主语/谓语/宾语都可以是 IRI/bnode/文字)。 关于它的可能用途,它给出
我是一名优秀的程序员,十分优秀!