This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
AudioGameGUI/trialseq.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (20 sloc)
740 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TRIALSEQ_H | |
#define TRIALSEQ_H | |
#include <random> | |
#include <ctime> | |
#include <algorithm> | |
#include <QVector> | |
#include <QString> | |
#include <QFile> | |
#include <QTextStream> | |
#include <QDebug> | |
namespace TrialSeq { | |
enum SORTING {ORDERED, SORTED, SHUFFLED}; | |
// values for trial sequence sorting | |
int randomGenerator (int i); | |
double randomMinMax (double min, double max); | |
QVector<int> generateTrialSequence(int sorting, int repeatPositive, int repeatNegative); | |
QVector<double> generateItiSequence(double userReaction, QString itiList, double preImaq, int repeatPositive, int repeatNegative); | |
QVector<double> loadExternalItiSequence(QString fileName, int repeatPositive, int repeatNegative); | |
} | |
#endif // TRIALSEQ_H |