GClasses
|
This uses graph-cut to divide the data into two clusters. It then trains a linear regression model for each cluster to map from inputs to change-in-state. It then aligns the smaller cluster with the larger one such that the linear models are in agreement (as much as possible). More...
#include <GManifold.h>
Public Member Functions | |
GDynamicSystemStateAligner (size_t neighbors, GMatrix &inputs, GRand &rand) | |
virtual | ~GDynamicSystemStateAligner () |
virtual GMatrix * | doit (GMatrix &in) |
Perform the transformation. | |
void | setSeeds (size_t a, size_t b) |
Specify the source and sink points for dividing the data into two clusters. | |
Static Public Member Functions | |
static void | test () |
Protected Attributes | |
size_t | m_neighbors |
size_t | m_seedA |
size_t | m_seedB |
size_t * | m_pNeighbors |
double * | m_pDistances |
GMatrix & | m_inputs |
GRand & | m_rand |
This uses graph-cut to divide the data into two clusters. It then trains a linear regression model for each cluster to map from inputs to change-in-state. It then aligns the smaller cluster with the larger one such that the linear models are in agreement (as much as possible).
GClasses::GDynamicSystemStateAligner::GDynamicSystemStateAligner | ( | size_t | neighbors, |
GMatrix & | inputs, | ||
GRand & | rand | ||
) |
virtual GClasses::GDynamicSystemStateAligner::~GDynamicSystemStateAligner | ( | ) | [virtual] |
Perform the transformation.
Implements GClasses::GTransform.
void GClasses::GDynamicSystemStateAligner::setSeeds | ( | size_t | a, |
size_t | b | ||
) |
Specify the source and sink points for dividing the data into two clusters.
static void GClasses::GDynamicSystemStateAligner::test | ( | ) | [static] |
GMatrix& GClasses::GDynamicSystemStateAligner::m_inputs [protected] |
size_t GClasses::GDynamicSystemStateAligner::m_neighbors [protected] |
double* GClasses::GDynamicSystemStateAligner::m_pDistances [protected] |
size_t* GClasses::GDynamicSystemStateAligner::m_pNeighbors [protected] |
GRand& GClasses::GDynamicSystemStateAligner::m_rand [protected] |
size_t GClasses::GDynamicSystemStateAligner::m_seedA [protected] |
size_t GClasses::GDynamicSystemStateAligner::m_seedB [protected] |