model.h
来自「一个很好的粒子滤波算法」· C头文件 代码 · 共 41 行
H
41 行
#ifndef _MODEL_H_#define _MODEL_H_#include "scanner.h"/** * defines a temporal motion trajectory model * by Alex Gruenstein * for cs223b final project */class Model {public: Model(const char *filename); //load the model from a file int GetLength(); double InterpolateLeftHvel(double phase); double InterpolateLeftVvel(double phase); double InterpolateRightHvel(double phase); double InterpolateRightVvel(double phase); double *hvelLeft; //horizontal velocities double *vvelLeft; //vertical velocities double *hvelRight; double *vvelRight; private: double *ReadDoubleArray(Scanner s, int length); double LinearInterpolate(double *array, double phase); int length; //length of model in timesteps};#endif _MODEL_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?