📄 motif_param.h
字号:
#ifndef MOTIF_PARAM
#define MOTIF_PARAM
typedef struct Charact_point
{
int x;
double y;
}Charact_Point;
typedef struct
//定义了MOTIF的参数结构,以下为MOTIF的7个参数
{
double AR;
double R;
double Rx;
double AW;
double W;
double Wx;
double Wte;
}Motif_Param;
struct Motif_Stru
{
Charact_Point LPeak,Valley,RPeak;//3 point determines the motif
int Length;//motif' spaceing
double Hl;//motif's left depth
double Hr;//Motif's right depth
double T;//Motif's T parameter
struct Motif_Stru *next;
};
typedef struct Motif_Stru Motif_Struct;
extern "C"__declspec(dllimport)void Motif_Segment(double *data,int n,int A,int B,double *index,int *Mbegin,int *Mend,int *number,
double *wdata,
double *windex,int *wMbegin,int *wMend,int *wnumber,
Motif_Param *mpara);
extern "C"__declspec(dllimport)void BuildShowdata(double *data,int n,double *index,double *x,double *y,int length,int Mbegin,int Mend);
// double *wdata, int *windex,int *wx,double *wy,int wlength,int wMbegin,int wMend);
extern "C"__declspec(dllimport)void BuildShowIndex(Motif_Struct *rhead,Motif_Struct *rtail,double *index,int *number);
extern "C"__declspec(dllimport)void InitPeakValley(Charact_Point *peak,Charact_Point *valley,int n);
extern "C"__declspec(dllimport)double GetMeanH(double *data,int n,int A);
extern "C"__declspec(dllimport)void SeekOrgPeak_Valley(Charact_Point *data,int n,Charact_Point *peak,Charact_Point *valley,int *np);
extern "C"__declspec(dllimport)void EliminateNonSigPeak(Charact_Point *peak,Charact_Point *valley,int *np,double Limit);
extern "C"__declspec(dllimport)void RebuildPeakValley(double *data,int n,Charact_Point *peak,Charact_Point *valley,int np);
extern "C"__declspec(dllimport)void InsegCombineMotif(Motif_Struct *seg_beg,Motif_Struct *seg_end);
extern "C"__declspec(dllimport)void CreatMotif(Motif_Struct *t,Charact_Point LPeak,Charact_Point RPeak,Charact_Point Valley);
extern "C"__declspec(dllimport)int CanGlobCombine(Motif_Struct *p1,Motif_Struct *p2,int FL);//FL stands for A or B
extern "C"__declspec(dllimport)int CanInsegCombine(Motif_Struct *p1,Motif_Struct *p2,double SegT);
extern "C"__declspec(dllimport)void CombineMotif(Motif_Struct *p1,Motif_Struct *p2);
extern "C"__declspec(dllimport)void Correct_Motif(Motif_Struct *head);
extern "C"__declspec(dllimport)void GlobCombMotif(Motif_Struct *head,int A);
extern "C"__declspec(dllimport)void InSegment_CombineMotif(Motif_Struct *head,int An,Charact_Point *peak,int np);
extern "C"__declspec(dllimport)void CalculateRx(Motif_Struct *head,double *Rx);
extern "C"__declspec(dllimport)void CalculateR_AR(Motif_Struct *head,double *R,double *AR);
extern "C"__declspec(dllimport)void CalculateWParam(Motif_Struct *whead,double *W,double *AW,double *Wx,double *Wte);
extern "C"__declspec(dllimport)void Correct_UpperEnv(Motif_Struct *head,double *data,int n);
extern "C"__declspec(dllimport)void BuildOrgWMotif(Motif_Struct *whead,Motif_Struct *rhead);
extern "C"__declspec(dllimport)void MotifCom(Motif_Struct *a,Motif_Struct *b);
extern "C"__declspec(dllimport)int GetMaxMotifWidth(Motif_Struct *head);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -