⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hilbert_function_constraint.m

📁 一个用EM算法的源程序
💻 M
字号:
function result = Hilbert_function_constraint(ambientDimension, subspaceDimensions);load rankTable.matsubspaceNumber = length(subspaceDimensions);subspaceCodimensions=ambientDimension*ones(1,subspaceNumber)-subspaceDimensions;subspaceCodimensions=sort(subspaceCodimensions);% Remove Hyperplanceswhile (subspaceNumber>2) && (subspaceCodimensions(1)==1)    subspaceCodimensions=subspaceCodimensions(2:end);    subspaceNumber = subspaceNumber - 1;    if subspaceNumber==0        % All hyperplanes        result = 1;        return;    endendcodimensionCombinations=rankTable{ambientDimension,subspaceNumber,1};charDimensions = rankTable{ambientDimension,subspaceNumber,2};% Find the right entryentryFound = false;entryIndex = 0;while (entryFound==false) && (entryIndex<size(codimensionCombinations,1))    entryIndex = entryIndex + 1;    if issame(codimensionCombinations(entryIndex,:),subspaceCodimensions)        entryFound = true;    endendif entryFound == false    error('The dimension combination is not in the Hilbert function constraint table.');endresult = charDimensions(entryIndex);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -