IMPORTANT NOTES ON THE N-WAY TOOLBOX ver. 3.30
There are some important details that are necessary to know in order to be able to use the N-way toolbox properly. These are given here - please read carefully before using the toolbox.
CONDITIONS
Copyright (C) 1995-2013 Rasmus Bro & Claus Andersson
Copenhagen University, DK-1958 Frederiksberg, Denmark, rb@life.ku.dk
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Preferably refer to
C. A. Andersson and R. Bro. The N-way Toolbox for MATLAB. Chemom.Intell.Lab.Syst. 52 (1):1-4, 2000.
or alternatively
The N-way Toolbox for MATLAB ver. 3.30, http://www.models.life.ku.dk/
R. Bro & C. A. Andersson
Faculty of Life Sciences
Copenhagen University
DK-1958 Frederiksberg
Denmark
WHERE DOES THE TOOLBOX WORK?
The toolbox has been tested on matlab 2013 in Windows 8 only. The toolbox uses features that are not compatible with matlab 4.x, so if you have matlab 4.x you should use version 1.04 of this toolbox instead.
SETTING UP THE TOOLBOX
In order to install the toolbox, simply (extract and) copy the files to a directory (e.g. NWAY). After copying all files, go to the 'update' homepage in order to see if newer versions of individual files are available. Copy these files indiviually overwriting the old files. Make sure that the updates are copied after the main files.
Make sure that the path ../nway is included in MATLAB's path. If you have e.g. the PLS_toolbox, some files are named identically. This may cause problems depending on which functions you use. If you want to use e.g. the parafac function from the N-way toolbox, you have to ensure that either the path to the N-way toolbox appears before the path to the PLS_toolbox or that you run matlab from the nway directory.
In order to get help on what files are present in the toolbox type <<help nway>> at the matlab command line (if nway is the name of the directory where you have the files.
DATA INPUT
Unlike, older matlab 4 compatible versions of this toolbox, the data are input directly as multi-way arrays. Hence, there is no need for the DimX used earlier for defining the size of the array. If you have a 10x8x100 array, X, that is held in a 10x(8*100) matrix, i.e. the old matrix format, you can convert to a three-way array by
X = reshape(X,10,8,100);
This is the format in which the data must be input to the functions.
MODEL OUTPUT
Also the output has changed in most cases since version 1. With the use of cell arrays, it is much easier to handle the output of a varying number of component matrices. Let the components of a three-way parafac model is held in a cell e.g. called Factors; e.g. arising from the call of a four-component model
Factors = parafac(X,3);
Then the first mode loadings are held in Factors{1}:
A = Factors{1};
B = Factors{2};
C = Factors{3};
For a Tucker model such as
[Factors,G]=tucker(X,[3 3 2]);
the components are found similarly and G will be a 3x3x2 array.
For a tri-PLS2 model (three-way X, two-way Y) two component sets are defined
Xfactors - T=Xfactors{1}, Wj=Xfactors{2}, Wk = Xfactors{3}
Yfactors - U=Yfactors{1}, Q=Yfactors{2}
Instead of using the cell notation, it is possible to use the M-file FAC2LET (factors to letters) to extract components; e.g.
[A,B,C] = fac2let(Factors);
MISSING DATA
For all algorithms the same flag is used for missing elements, namely NaN. If you have a data set, X, where missing elements are, e.g., designated by the number -9999, you can easily modify the data as
X(find(X==-9999))=NaN*find(X==-9999);
SUPPORT
We are VERY interested in and dependent on feedback from the users. If you have problems running the toolbox please supply screendumps as well as version number of the toolbox, MATLAB, and operating system before contacting us. We will do the utmost to help overcoming the problems. In the rare event that the support required is very time-consuming we will have to charge for this service.
The authors may be contacted by email:
claus@andersson.dk (primarily Tucker and application/helper programs)
rb@life.ku.dk (primarily PARAFAC/N-PLS)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。 Matlab(Matrix Laboratory)是一种专为数值计算和科学与工程应用而设计的高级编程语言和环境。在算法开发和实现方面,Matlab具有以下一些好处: 1. 丰富的数学和科学函数库:Matlab提供了广泛的数学、信号处理、图像处理、优化、统计等领域的函数库,这些函数库可以帮助开发者快速实现各种复杂的数值计算算法。这些函数库提供了许多常用的算法和工具,可以大大简化算法开发的过程。 2. 易于学习和使用:Matlab具有简单易用的语法和直观的编程环境,使得算法开发者可以更快速地实现和测试他们的算法。Matlab的语法与数学表达式和矩阵操作非常相似,这使得算法的表达更加简洁、清晰。 3. 快速原型开发:Matlab提供了一个交互式的开发环境,可以快速进行算法的原型开发和测试。开发者可以实时查看和修改变量、绘制图形、调试代码等,从而加快了算法的迭代和优化过程。这种快速原型开发的特性使得算法开发者可以更快地验证和修改他们的想法。 4. 可视化和绘图功能:Matlab具有强大的可视化和绘图功能,可以帮助开发者直观地展示和分析算法的结果。开发者可以使用Matlab绘制各种图形、曲线、图像,以及创建动画和交互式界面,从而更好地理解和传达算法的工作原理和效果。 5. 并行计算和加速:Matlab提供了并行计算和加速工具,如并行计算工具箱和GPU计算功能。这些工具可以帮助开发者利用多核处理器和图形处理器(GPU)来加速算法的计算过程,提高算法的性能和效率
资源推荐
资源详情
资源评论
收起资源包目录
用于高阶张量数据分解和分析的MATLAB工具箱.zip (585个子文件)
logo.gif 6KB
M1_multiply_doc.html 57KB
A1_tensor_doc.html 37KB
A2_sptensor_doc.html 33KB
D_ktensor_doc.html 30KB
S_test_problems_doc.html 29KB
B2_sptenmat_doc.html 22KB
C_ttensor_doc.html 21KB
B1_tenmat_doc.html 21KB
T3_wopt_algorithms_doc.html 18KB
T1_algorithms_doc.html 16KB
Q_collapse_scale_doc.html 14KB
T2_opt_algorithms_doc.html 13KB
N_nvecs_doc.html 9KB
tensor_toolbox_product_page.html 6KB
T4_cpapr_doc.html 5KB
V_SSHOPM_doc.html 4KB
tdalab_ver.ini 144B
install 2KB
banner-background.jpg 7KB
LICENSE 2KB
cocluster3.m 196KB
TDALABselectchn.m 60KB
selectchn.m 60KB
parafac.m 54KB
npls.m 46KB
call_ICA_EBM.m 42KB
ica_cpa.m 42KB
tucker.m 35KB
bcdLMN_alsls.m 35KB
cp3_alsls.m 35KB
bcdLrMrNr_alsls.m 34KB
bcdLrLr1_alsls.m 31KB
bcdLM_alsls.m 31KB
bcdLrMr_alsls.m 31KB
bcdLL1_alsls.m 31KB
guiSetOpts.m 28KB
algsInitialize.m 25KB
tdalab.m 25KB
icalab_srplot.m 23KB
tucker2.m 21KB
solve_blockperm.m 20KB
solve_blockperm.m 20KB
solve_blockperm.m 20KB
solve_blockperm.m 20KB
solve_blockperm.m 20KB
solve_blockperm.m 20KB
cp5_alsls.m 19KB
CPTuckerVisualize.m 19KB
PMFefica.m 18KB
cp4_alsls.m 18KB
ncrossdecompn.m 18KB
HONMF.m 17KB
ncrossdecomp.m 15KB
create_problem.m 13KB
tt_combinator.m 12KB
Contents.m 12KB
callTuckerDA.m 12KB
waveplot.m 11KB
visualize.m 11KB
subsasgn.m 11KB
runclustering.m 11KB
nprocess.m 11KB
ncrossreg.m 11KB
cp_alsls.m 10KB
M1_multiply_doc.m 10KB
PMFwasobi.m 10KB
hungarian.m 9KB
ini.m 9KB
runTDalg.m 8KB
S_test_problems_doc.m 8KB
beta_nmf_ME.m 8KB
call_nPARAFAC.m 8KB
call_bcdLrLr1.m 8KB
appr3d.m 8KB
call_bcdLL1.m 8KB
cp_apr.m 8KB
VCA.m 8KB
mrcp.m 7KB
corcond.m 7KB
PMFsetOpts.m 7KB
A1_tensor_doc.m 7KB
sptensor.m 7KB
fnipals.m 7KB
M2_identities_doc_future.m 7KB
A2_sptensor_doc.m 7KB
pftest.m 7KB
demo1.m 7KB
sptenmat.m 7KB
demo1.m 7KB
demo1.m 6KB
inituck.m 6KB
BSSTucker.m 6KB
demo1.m 6KB
bcdLL1_init.m 6KB
setNoise.m 6KB
call_nTucker.m 6KB
call_HONMF.m 6KB
cp_als.m 6KB
nmodel.m 6KB
共 585 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
若明天不见
- 粉丝: 1w+
- 资源: 273
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功