Marsyas
0.6.0-alpha
|
Central agency responsible for causally evaluating a pool of active BeatAgents around each beat prediction, and selecting the best one at each time ("frame" - tick), based on a given heuristics (score function) which affers the goodness-of-fit between each agent prediction and local maxima in the observed data (given by the onset detection function calculated by the Spectral Flux). More...
#include <BeatReferee.h>
Inherits MarSystem.
Central agency responsible for causally evaluating a pool of active BeatAgents around each beat prediction, and selecting the best one at each time ("frame" - tick), based on a given heuristics (score function) which affers the goodness-of-fit between each agent prediction and local maxima in the observed data (given by the onset detection function calculated by the Spectral Flux).
Given such, this entity is responsible for:
Input: Matrix with the beat/evaluation information from each BeatAgent of the pool (restricted to a defined maximum of M agents):
[Beati/Evali/Nonei|Periodi|PrevBeatTimei|Inneri/Outteri|Errori|dScorei] [ ... | ... | ... | ... | ... | ... ] [BeatM/EvalM/NoneM|PeriodM|PrevBeatTimeM|InnerM/OutterM|ErrorM|dScoreM]
Output: [BEAT/~BEAT]
Controls:
Definition at line 77 of file BeatReferee.h.
BeatReferee | ( | std::string | name | ) |
Definition at line 35 of file BeatReferee.cpp.
BeatReferee | ( | const BeatReferee & | a | ) |
Definition at line 64 of file BeatReferee.cpp.
~BeatReferee | ( | ) |
Definition at line 152 of file BeatReferee.cpp.
void calcAbsoluteBestScore | ( | ) |
Definition at line 1967 of file BeatReferee.cpp.
mrs_realvec calcChildrenHypothesis | ( | mrs_natural | oldPeriod, |
mrs_natural | prevBeat, | ||
mrs_natural | error | ||
) |
Definition at line 1370 of file BeatReferee.cpp.
mrs_natural calcFirstBacktracedBeat | ( | mrs_natural | initPeriod, |
mrs_natural | initPhase | ||
) |
Definition at line 1015 of file BeatReferee.cpp.
mrs_natural calcFirstBeat | ( | mrs_natural | initPeriod, |
mrs_natural | initPhase | ||
) |
mrs_natural calcNewPeriod | ( | mrs_natural | oldPeriod, |
mrs_natural | error, | ||
mrs_real | beta | ||
) |
Definition at line 1355 of file BeatReferee.cpp.
mrs_realvec calculateNewHypothesis | ( | mrs_natural | agentIndex, |
mrs_natural | oldPeriod, | ||
mrs_natural | prevBeat, | ||
mrs_natural | error | ||
) |
Definition at line 1314 of file BeatReferee.cpp.
void checkAndKillEqualAgents | ( | mrs_natural | agentIndex | ) |
Definition at line 1130 of file BeatReferee.cpp.
Definition at line 367 of file BeatReferee.cpp.
void cleanAgentAndFatherTransitionFlags | ( | mrs_natural | agentIndex | ) |
Definition at line 1670 of file BeatReferee.cpp.
Implements MarSystem.
Definition at line 157 of file BeatReferee.cpp.
Definition at line 628 of file BeatReferee.cpp.
void createChildren | ( | mrs_natural | agentIndex, |
mrs_natural | oldPeriod, | ||
mrs_natural | prevBeat, | ||
mrs_natural | error, | ||
mrs_real | agentScore, | ||
mrs_real | beatCount | ||
) |
Definition at line 1458 of file BeatReferee.cpp.
mrs_natural createNewAgent | ( | mrs_natural | newPeriod, |
mrs_natural | firstBeat, | ||
mrs_real | newScore, | ||
mrs_real | beatCount, | ||
mrs_natural | fatherAgent = -1 |
||
) |
Definition at line 1702 of file BeatReferee.cpp.
void debugAddEvent | ( | mrs_string | ibtEvent, |
mrs_natural | agentIndex, | ||
mrs_natural | period, | ||
mrs_natural | lastBeat, | ||
mrs_real | score, | ||
mrs_real | bestScore, | ||
mrs_natural | callAgent = -1 |
||
) |
Definition at line 2024 of file BeatReferee.cpp.
void debugAddMsg | ( | mrs_string | ibtMsg | ) |
Definition at line 2052 of file BeatReferee.cpp.
void debugCreateFile | ( | ) |
Definition at line 2000 of file BeatReferee.cpp.
mrs_natural existEqualAgents | ( | mrs_natural | agentIndex, |
mrs_natural | agentPeriod, | ||
mrs_natural | agentPhase | ||
) |
Definition at line 1071 of file BeatReferee.cpp.
mrs_natural existEqualBetterAgents | ( | mrs_natural | agentIndex, |
mrs_natural | agentPeriod, | ||
mrs_natural | agentPhase, | ||
mrs_real | newAgentScore | ||
) |
Definition at line 1047 of file BeatReferee.cpp.
mrs_natural getBestSimilarAgent | ( | mrs_natural | newAgentPeriod, |
mrs_natural | newAgentInitPhase, | ||
mrs_real | newAgentScore | ||
) |
Definition at line 893 of file BeatReferee.cpp.
mrs_natural getBestSimilarAgent2 | ( | mrs_natural | newAgentPeriod, |
mrs_natural | newAgentInitPhase | ||
) |
mrs_natural getBestSimilarAgent3 | ( | mrs_natural | newAgentPeriod, |
mrs_realvec | completedClustersPer | ||
) |
Definition at line 826 of file BeatReferee.cpp.
mrs_realvec getEqualAgents | ( | mrs_natural | agentIndex, |
mrs_natural | agentPeriod, | ||
mrs_natural | agentPhase | ||
) |
Definition at line 1092 of file BeatReferee.cpp.
Definition at line 1264 of file BeatReferee.cpp.
mrs_natural getWorstAgent | ( | mrs_natural | callAgent | ) |
Definition at line 1280 of file BeatReferee.cpp.
void grantPoolSpace | ( | mrs_natural | callAgent, |
mrs_real | newAgentScore | ||
) |
Definition at line 1568 of file BeatReferee.cpp.
void grantPoolSpace2 | ( | mrs_natural | callAgent, |
mrs_natural | nrRequired, | ||
mrs_realvec | newAgentsScore | ||
) |
Definition at line 1529 of file BeatReferee.cpp.
void grantPoolSpaceForTriggerAgents | ( | mrs_realvec | triggerAgentsHypotheses | ) |
Definition at line 610 of file BeatReferee.cpp.
void handleAgentsTansition | ( | mrs_natural | agent | ) |
Definition at line 1605 of file BeatReferee.cpp.
void initialization | ( | ) |
Definition at line 2069 of file BeatReferee.cpp.
mrs_bool isGTFileInLine | ( | mrs_string | line | ) |
Definition at line 350 of file BeatReferee.cpp.
void killAgent | ( | mrs_natural | agentIndex, |
mrs_string | motif, | ||
mrs_natural | callAgent = -1 |
||
) |
Definition at line 1915 of file BeatReferee.cpp.
mrs_bool loadTriggerTimes | ( | mrs_string | triggerTimesFile | ) |
Definition at line 291 of file BeatReferee.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 2138 of file BeatReferee.cpp.
void resetSystem | ( | mrs_natural | saveAgent | ) |
Definition at line 1898 of file BeatReferee.cpp.
void setNewHypothesis | ( | mrs_natural | agentIndex, |
mrs_natural | newPeriod, | ||
mrs_natural | nextBeat | ||
) |
Definition at line 1515 of file BeatReferee.cpp.
void updateAgentHypothesis | ( | mrs_natural | agentIndex, |
mrs_natural | oldPeriod, | ||
mrs_natural | prevBeat, | ||
mrs_natural | error | ||
) |
Definition at line 1497 of file BeatReferee.cpp.