#include <seriesClassification.h>
Classes | |
struct | minMax |
Public Member Functions | |
seriesClassification () | |
~seriesClassification () | |
bool | train (const std::vector< trainingSeries< T > > &seriesSet) |
void | reset () |
std::string | run (const std::vector< std::vector< T > > &inputSeries) |
T | run (const std::vector< std::vector< T > > &inputSeries, std::string label) |
std::vector< T > | getCosts () const |
int | getMinLength () const |
int | getMinLength (std::string label) const |
int | getMaxLength () const |
int | getMaxLength (std::string label) const |
minMax< T > | calculateCosts (std::string label) const |
minMax< T > | calculateCosts (std::string label1, std::string label2) const |
Class for containing time series classifiers.
Currently only (fast)DTW.
seriesClassification< T >::seriesClassification | ( | ) |
Constructor, no params
seriesClassification< T >::~seriesClassification | ( | ) |
seriesClassification< T >::minMax< T > seriesClassification< T >::calculateCosts | ( | std::string | label | ) | const |
Calculate minimum and maximum cost between examples in a label.
string | Label to calculate |
seriesClassification< T >::minMax< T > seriesClassification< T >::calculateCosts | ( | std::string | label1, |
std::string | label2 | ||
) | const |
Calculate minimum and maximum cost between examples in one label and examples in a second.
string | first label to compare |
string | second label to compare |
std::vector< T > seriesClassification< T >::getCosts | ( | ) | const |
Get the costs that were calculated by the run method
int seriesClassification< T >::getMaxLength | ( | ) | const |
Get maximum training series length
int seriesClassification< T >::getMaxLength | ( | std::string | label | ) | const |
Get maximum training series length from a specified label
string | The label to check |
int seriesClassification< T >::getMinLength | ( | ) | const |
Get minimum training series length
int seriesClassification< T >::getMinLength | ( | std::string | label | ) | const |
Get minimum training series length from a specified label
string | The label to check |
void seriesClassification< T >::reset | ( | ) |
Reset model to its initial state, forget all costs and training data
std::string seriesClassification< T >::run | ( | const std::vector< std::vector< T > > & | inputSeries | ) |
Compare an input series to the stored training series
std::vector<std::vector> | vector of vectors, either float or double input data |
T seriesClassification< T >::run | ( | const std::vector< std::vector< T > > & | inputSeries, |
std::string | label | ||
) |
Compare an input series to all of the stored series with a specified label
std::vector<std::vector> | either float or double input data |
String | label to compare with |
bool seriesClassification< T >::train | ( | const std::vector< trainingSeries< T > > & | seriesSet | ) |
Train on a specified set of trainingSeries
std::vector<trainingSeries> | A vector of training series |