Mercurial > hg > smallbox
comparison config/SMALL_learn_config.m @ 228:198d4d9cee74 luisf_dev
Now can use a local configuration file, which is a copy of the default config files, and thus not being commited to the repository.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 12 Apr 2012 15:06:41 +0100 |
parents | 751fa3bddd30 |
children |
comparison
equal
deleted
inserted
replaced
227:b50e2b6a9c37 | 228:198d4d9cee74 |
---|---|
1 %% Configuration file used in SMALL_learn | 1 %% Configuration file used in SMALL_learn |
2 % | 2 % |
3 % Use this file to change the dictionary learning algorithms in SMALLBox | 3 % Please DO NOT use this file to change the dictionary learning algorithms in SMALLBox |
4 % Please refer to the documentation before editing this file | 4 % If you want to change the dictionary learning algorithms |
5 % create a copy of this file named 'SMALL_learn_config_local.m' | |
6 % | |
7 % Please refer to the documentation for further information | |
5 | 8 |
6 % Centre for Digital Music, Queen Mary, University of London. | 9 % Centre for Digital Music, Queen Mary, University of London. |
7 % This file copyright 2009 Ivan Damnjanovic. | 10 % This file copyright 2009 Ivan Damnjanovic. |
8 % | 11 % |
9 % This program is free software; you can redistribute it and/or | 12 % This program is free software; you can redistribute it and/or |
71 | 74 |
72 for i = 1: size(DL.D,2) | 75 for i = 1: size(DL.D,2) |
73 DL.D(:,i)=DL.D(:,i)/norm(DL.D(:,i)); | 76 DL.D(:,i)=DL.D(:,i)/norm(DL.D(:,i)); |
74 end | 77 end |
75 D = DL.D; | 78 D = DL.D; |
76 | 79 |
80 %% | |
81 % Please do not make any changes to the 'SMALL_learn_config.m' file | |
82 % All the changes should be done to your local configuration file | |
83 % named 'SMALL_learn_config_local.m' | |
84 % | |
77 % To introduce new dictionary learning technique put the files in | 85 % To introduce new dictionary learning technique put the files in |
78 % your Matlab path. Next, unique name <TolboxID> for your toolbox needs | 86 % your Matlab path. Next, unique name <TolboxID> for your toolbox needs |
79 % to be defined and also prefferd API for toolbox functions <Preffered_API> | 87 % to be defined and also prefferd API for toolbox functions <Preffered_API> |
80 % | 88 % |
81 % elseif strcmpi(DL.toolbox,'<ToolboxID>') | 89 % elseif strcmpi(DL.toolbox,'<ToolboxID>') |