#include <cstdio>#include "vector-iterator.h"#include "pca.h"#include "spectrum-pca.h"#include "user-notification.h"
Defines | |
| #define | MIN(A, B) if (B<A) A=B; |
| #define | MAX(A, B) if (B>A) A=B; |
Functions | |
| if (count==0) return Done | |
| if (svi.val()->get_spectrum()!=no_spectrum) | |
| do_pca (count, spectrum_size, data, error_msg) | |
| if (error_msg) | |
| for (int i=1;i<=count;i++) | |
| if (dx==0) dx | |
| if (dy==0) dy | |
| if (dz==0) dz | |
| un | updateProcessView (true) |
| un | send () |
Variables | |
| data = matrix(count,spectrum_size) | |
| int | written = 0 |
| vectorIterator< Song * > | svi (all) |
| const char * | error_msg = NULL |
| float4 | dx = maxx-minx |
| float4 | dy = maxy-miny |
| float4 | dz = maxz-minz |
| delete | songs |
| un | status = "Spectrum PCA finished" |
| return | Done |
| SpectrumPca | spectrumPca |
| #define MAX | ( | A, | |||
| B | ) | if (B>A) A=B; |
Referenced by for().
| #define MIN | ( | A, | |||
| B | ) | if (B<A) A=B; |
Referenced by for().
| if | ( | dz | = =0 |
) |
| if | ( | dy | = =0 |
) |
| if | ( | dx | = =0 |
) |
| if | ( | svi.val()->get_spectrum()! | = no_spectrum |
) |
References assert(), data, spectrum_size, and svi.
| if | ( | count | = =0 |
) |
| un send | ( | ) |
| un updateProcessView | ( | true | ) |
| data = matrix(count,spectrum_size) |
| return Done |
Referenced by ActiveFragmentCreator::createOneFor(), ActiveFragmentPlayer::delivererFinished(), ActiveSongCopier::fetch(), ActiveSongCopier::fetchNextSong(), ActiveFragmentPlayer::playWave(), ActiveSongCopier::setTarget(), ActiveIndexReader::start(), ActiveExistenceScanner::start(), ActiveFragmentPlayer::startOutput(), ActiveFragmentPlayer::stopOutput(), ActiveIndexReader::terminate(), ActiveFragmentPlayer::terminate(), ActiveExistenceScanner::terminate(), ActiveIndexReader::thunk(), and ActiveExistenceScanner::thunk().
| dx = maxx-minx |
Referenced by map_active().
| dy = maxy-miny |
| dz = maxz-minz |
| delete songs |
The active object that will run a principal component analysis on the spectrum property.
Referenced by terminate_and_quit().
| vectorIterator<Song*> svi(all) |
Referenced by SongSelectorLogic::avoidSongs(), SongSelectorLogic::clearMetaData(), SongSelectorLogic::exportPlayList(), SongSelectorLogic::exportTempoList(), if(), SongSelectorLogic::queueAnalysis(), SongSelectorLogic::selectionAddQueue(), SongSelectorLogic::selectionAddTags(), SongSelectorLogic::selectionDelTags(), SongSelectorLogic::selectionEditInfo(), SongSelectorLogic::selectionSetAuthor(), SongSelectorLogic::selectionSetMainSong(), and SongSelectorLogic::startRenamerOnIndices().
| written = 0 |
Referenced by SongSlot::startChecking(), and DecoderChecker::works().
1.6.2