GClasses
GClasses::GDynamicSystemStateAligner Class Reference

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>

Inheritance diagram for GClasses::GDynamicSystemStateAligner:
GClasses::GTransform

Public Member Functions

 GDynamicSystemStateAligner (size_t neighbors, GMatrix &inputs, GRand &rand)
 
virtual ~GDynamicSystemStateAligner ()
 
virtual GMatrixreduce (const GMatrix &in)
 Perform the transformation. More...
 
void setSeeds (size_t a, size_t b)
 Specify the source and sink points for dividing the data into two clusters. More...
 
- Public Member Functions inherited from GClasses::GTransform
 GTransform ()
 
 GTransform (GDomNode *pNode, GLearnerLoader &ll)
 
virtual ~GTransform ()
 

Static Public Member Functions

static void test ()
 

Protected Attributes

GMatrixm_inputs
 
size_t m_neighbors
 
double * m_pDistances
 
size_t * m_pNeighbors
 
GRandm_rand
 
size_t m_seedA
 
size_t m_seedB
 

Additional Inherited Members

- Protected Member Functions inherited from GClasses::GTransform
virtual GDomNodebaseDomNode (GDom *pDoc, const char *szClassName) const
 Child classes should use this in their implementation of serialize. More...
 

Detailed Description

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).

Constructor & Destructor Documentation

GClasses::GDynamicSystemStateAligner::GDynamicSystemStateAligner ( size_t  neighbors,
GMatrix inputs,
GRand rand 
)
virtual GClasses::GDynamicSystemStateAligner::~GDynamicSystemStateAligner ( )
virtual

Member Function Documentation

virtual GMatrix* GClasses::GDynamicSystemStateAligner::reduce ( const GMatrix in)
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

Member Data Documentation

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