You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					25 lines
				
				568 B
			
		
		
			
		
	
	
					25 lines
				
				568 B
			| 
											5 years ago
										 | #pragma once
 | ||
|  | 
 | ||
|  | #include "runmodel.h"
 | ||
|  | #include "thneed/thneed.h"
 | ||
|  | 
 | ||
|  | class ThneedModel : public RunModel {
 | ||
|  | public:
 | ||
|  |   ThneedModel(const char *path, float *loutput, size_t loutput_size, int runtime);
 | ||
|  |   void addRecurrent(float *state, int state_size);
 | ||
|  |   void addTrafficConvention(float *state, int state_size);
 | ||
|  |   void addDesire(float *state, int state_size);
 | ||
|  |   void execute(float *net_input_buf, int buf_size);
 | ||
|  | private:
 | ||
|  |   Thneed *thneed = NULL;
 | ||
|  |   bool recorded;
 | ||
|  | 
 | ||
|  |   float *output;
 | ||
|  | 
 | ||
|  |   // recurrent and desire
 | ||
|  |   float *recurrent;
 | ||
|  |   float *trafficConvention;
 | ||
|  |   float *desire;
 | ||
|  | };
 | ||
|  | 
 |