Mercurial > hg > smallbox
comparison examples/Automatic Music Transcription/SMALL_AMT_KSVD_Sparsity_test.m @ 164:4205744092e6 release_1.9
Merge from branch "ivand_dev"
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 07 Sep 2011 14:17:30 +0100 |
parents | f42aa8bcb82f |
children | 9c418bea7f6a |
comparison
equal
deleted
inserted
replaced
151:af5abc34a5e1 | 164:4205744092e6 |
---|---|
31 | 31 |
32 | 32 |
33 % Defining Automatic Transcription of Piano tune as Dictionary Learning | 33 % Defining Automatic Transcription of Piano tune as Dictionary Learning |
34 % Problem | 34 % Problem |
35 | 35 |
36 SMALL.Problem = generateAMT_Learning_Problem(); | 36 SMALL.Problem = generateAMTProblem(); |
37 | 37 |
38 TPmax=0; | 38 TPmax=0; |
39 | 39 |
40 for i=1:10 | 40 for i=1:10 |
41 | 41 |
71 % (backward compatiblity with SPARCO: solver structure communicate | 71 % (backward compatiblity with SPARCO: solver structure communicate |
72 % only with Problem structure, ie no direct communication between DL and | 72 % only with Problem structure, ie no direct communication between DL and |
73 % solver structures) | 73 % solver structures) |
74 | 74 |
75 SMALL.Problem.A = SMALL.DL(i).D; | 75 SMALL.Problem.A = SMALL.DL(i).D; |
76 SMALL.Problem.reconstruct = @(x) SMALL_midiGenerate(x, SMALL.Problem); | 76 SMALL.Problem.reconstruct = @(x) AMT_reconstruct(x, SMALL.Problem); |
77 | 77 |
78 %% | 78 %% |
79 % Initialising solver structure | 79 % Initialising solver structure |
80 % Setting solver structure fields (toolbox, name, param, solution, | 80 % Setting solver structure fields (toolbox, name, param, solution, |
81 % reconstructed and time) to zero values | 81 % reconstructed and time) to zero values |