Skip to content

hpdps-group/matGadgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matGadgets

Some gadgets implemented by Matlab.

To run the code, we need the support of Tensor Toolbox for MATLAB, Version 3.2.1. The toolbox can be downloaded from here: https://gitlab.com/tensors/tensor_toolbox/-/archive/v3.2.1/tensor_toolbox-v3.2.1.zip. After you download the toolbox, decompress under the matGadgets/ directory, and add toolbox folder to path using 'addpath('tensor_toolbox-v3.2.1');' command in the code (Please see the demo for details).

Version History: May 10, 2021 Created repo and uploaded main body.

Function Structure:

  1. demo.m: This is the demo part that shows how to run the fullTucker function.
  2. fullTucker.m: This is the full decomposition implementation of HOSVD (Tucker model).
  3. ./Utils/twoDigits.m: This is a function created to adapt the file names of corresponding dataset, in which you can simply iterate through the timestamps and turn the number (especially less than 10) into two digits
  4. ./Utils/sortem.m: The function is used to sort the eigen matrix and then re-order the factor matrix with the sorted eigen matrix. https://www.mathworks.com/matlabcentral/fileexchange/18904-sort-eigenvectors-eigenvalues
  5. ./Utils/readTensorFile.m: This is a function created to read the file from defined directory.
  6. ./Utils/myUnfold.m: This is a function that unfolding tensor T on the mode n.
  7. ./Utils/myPSNR.m: This is a function that computes the PSNR and RMSE defined in TThresh.

About

Some gadgets implemented by Matlab.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages