Simple class for an eyesal output file data, represents data and I/O. More...
#include <Psycho/EyesalData.H>
Classes | |
struct | RawEyesalData |
Public Member Functions | |
Constructors, destructor and initialization | |
EyesalData () | |
Emtpy Constructor for compatibility. | |
EyesalData (const std::string &filename) | |
Constructor from a file on disk. | |
Data access functions | |
void | setFile (const std::string &filename) |
reset the file data | |
bool | hasData (const size_t index) const |
Do we have a sample for the given index? | |
std::vector< float > | getNormSal () const |
return the normalized saliency values | |
std::vector< float > | getNormRand (const size_t index) const |
return the normalized random value at index(usually 1:100) | |
std::vector< std::vector< float > > | getAllNormRand () const |
return all the normalized random values | |
std::vector< std::vector< float > > | getAllNormRandT () const |
return all the normalized random values Transposed | |
Point2D< int > | getXYpos (const size_t index) const |
return the x and y position at the specified index | |
std::vector< Point2D< int > > | getXYpos () const |
return the x and y positions as a vector | |
float | getTime (const size_t index) const |
return the time at which the saccade landed at its target | |
std::vector< float > | getTime () const |
return the times of saccadic endpoints as a vector | |
std::string | getFileName (const size_t index) const |
return the filename that the saccade at index occurred in | |
std::vector< std::string > | getFileName () const |
return the filnames as a vector of string | |
size_t | size () const |
Get number of saccades in file. | |
Metadata access functions | |
std::string | filename () const |
Get filename. | |
std::string | basename () const |
Get filename, without extension if any. | |
Computations | |
float | getAUC () const |
get AUC of the data |
Simple class for an eyesal output file data, represents data and I/O.
Definition at line 48 of file EyesalData.H.
EyesalData::EyesalData | ( | ) |
Emtpy Constructor for compatibility.
Definition at line 46 of file EyesalData.C.
EyesalData::EyesalData | ( | const std::string & | filename | ) |
std::string EyesalData::basename | ( | ) | const |
Get filename, without extension if any.
Definition at line 231 of file EyesalData.C.
std::string EyesalData::filename | ( | ) | const |
Get filename.
Definition at line 226 of file EyesalData.C.
std::vector< std::vector< float > > EyesalData::getAllNormRand | ( | ) | const |
return all the normalized random values
Definition at line 150 of file EyesalData.C.
References getNormRand().
Referenced by getAllNormRandT().
std::vector< std::vector< float > > EyesalData::getAllNormRandT | ( | ) | const |
return all the normalized random values Transposed
Definition at line 161 of file EyesalData.C.
References getAllNormRand(), and size().
float EyesalData::getAUC | ( | ) | const |
get AUC of the data
std::vector< std::string > EyesalData::getFileName | ( | ) | const |
return the filnames as a vector of string
Definition at line 209 of file EyesalData.C.
References size().
std::string EyesalData::getFileName | ( | const size_t | index | ) | const |
return the filename that the saccade at index occurred in
Definition at line 204 of file EyesalData.C.
std::vector< float > EyesalData::getNormRand | ( | const size_t | index | ) | const |
return the normalized random value at index(usually 1:100)
Definition at line 140 of file EyesalData.C.
Referenced by getAllNormRand().
std::vector< float > EyesalData::getNormSal | ( | ) | const |
return the normalized saliency values
Definition at line 129 of file EyesalData.C.
std::vector< float > EyesalData::getTime | ( | ) | const |
return the times of saccadic endpoints as a vector
Definition at line 192 of file EyesalData.C.
References size().
float EyesalData::getTime | ( | const size_t | index | ) | const |
return the time at which the saccade landed at its target
Definition at line 186 of file EyesalData.C.
std::vector< Point2D< int > > EyesalData::getXYpos | ( | ) | const |
return the x and y positions as a vector
Definition at line 175 of file EyesalData.C.
References size().
Point2D< int > EyesalData::getXYpos | ( | const size_t | index | ) | const |
return the x and y position at the specified index
Definition at line 123 of file EyesalData.C.
bool EyesalData::hasData | ( | const size_t | index | ) | const |
Do we have a sample for the given index?
This will return true as long as the index is not past the available amount of data.
Definition at line 117 of file EyesalData.C.
void EyesalData::setFile | ( | const std::string & | filename | ) |
reset the file data
Definition at line 63 of file EyesalData.C.
References split().
Referenced by EyesalData().
size_t EyesalData::size | ( | ) | const |
Get number of saccades in file.
Definition at line 219 of file EyesalData.C.
Referenced by getAllNormRandT(), getFileName(), getTime(), and getXYpos().