Mercurial > hg > scatter_reeval
annotate reeval/features/compute_features.m @ 4:a1f6a08f624c tip
Completed version 0.0.2
author | Francisco Rodriguez Algarra <f.rodriguezalgarra@qmul.ac.uk> |
---|---|
date | Tue, 03 Nov 2015 21:24:41 +0000 |
parents | b1cd83874633 |
children |
rev | line source |
---|---|
f@2 | 1 function [db] = compute_features(experiment, src) |
f@2 | 2 |
f@2 | 3 if nargin < 2 |
f@2 | 4 global src; |
f@2 | 5 end |
f@2 | 6 |
f@2 | 7 N = 5*2^17; |
f@2 | 8 |
f@2 | 9 % set the appropriate options for the particular feature set |
f@2 | 10 |
f@2 | 11 options = set_options(experiment); |
f@2 | 12 |
f@2 | 13 % extract features using the computed options |
f@2 | 14 |
f@2 | 15 features = extract_features(experiment, N, options); |
f@4 | 16 |
f@2 | 17 db = prepare_database(src, features); |
f@4 | 18 |
f@2 | 19 db.features = single(db.features); |
f@4 | 20 |
f@2 | 21 end |