⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 output.h

📁 模糊聚类分析的源程序!
💻 H
📖 第 1 页 / 共 2 页
字号:
  inline void PixeltoWorld2d (short xpos, short ypos, double *xis, double *yis);#if 0  /* XXX: */  inline#endif    void WorldtoPixel2d (double xpos, double ypos, short *xis, short *yis);#if 0  /* XXX: */  inline#endif    void WorldtoPixel3d (double xpos,			 double ypos,			 double zpos,			 short *xis, short *yis);  inline void WorldtoPixel3d (double xpos,			      double ypos,			      double zpos,			      double zworld,			      short *xis, short *yis);  inline void WorldtoZvalue (double xpos,			     double ypos,			     double zpos,			     double *zis);#if 0  /* XXX: */  void Resized (int newwidth, int newheight);#endif  void AxisRotx (double angle);  void AxisRoty (double angle);  void AxisRotz (double angle);  DVektor *Getnearestpoint1d (short xpos, short ypos, int *index, short *xis, short *yis);  DVektor *Getnearestpoint2d (short xpos, short ypos, int *index, short *xis, short *yis);  DVektor *Getnearestpoint3d (short xpos, short ypos, int *index, short *xis, short *yis);  void DrawPoint (short xpos, short ypos, int options, int number, short pointtyp);  void DrawPoint2d (DVektor * me, int options, short pointtyp);  void DrawPoint3d (DVektor * me, int options, short pointtyp);  void DrawAxes2d (char options, char *text1, char *text2);  void DrawAxes2d (char options) {    DrawAxes2d (options, NULL, NULL);  } void DrawAxes3d (char options, char *text1, char *text2, char *text3);  void DrawAxes3d (char options) {    DrawAxes3d (options, NULL, NULL, NULL);  } void DrawDVektorArray1d (int options, char pointtyp, DVektorArray * inputData, BVektor * eindeutig);  void DrawDVektorArray2d (int options, char pointtyp, DVektorArray * inputData, BVektor * eindeutig);  void DrawDVektorArray3d (int options, char pointtyp, DVektorArray * inputData, BVektor * eindeutig);  inline void FillPoint (XPoint * Point,			 double xpos,			 double ypos);  inline void FillLines (XSegment * lines,			 double xpos,			 double ypos,			 short *xpixel, short *ypixel);  inline void FillPoint (XPoint * Point,			 int number,			 double xpos);  inline void FillLines (XSegment * lines,			 int number,			 double xpos,			 short *xpixel, short *ypixel);  inline void FillPoint (XPoint * Point,			 double xpos,			 double ypos,			 double zpos);  inline void FillLines (XSegment * lines,			 double xpos,			 double ypos,			 double zpos,			 short *xpixel, short *ypixel);  void SetIndex (int indexx, int indexy, int indexz) {    xindex = indexx;    yindex = indexy;    zindex = indexz;  } void SetIndex (int indexx, int indexy) {    int zindex = 0;    while ((zindex == indexx) || (zindex == indexy))        zindex++;      SetIndex (indexx, indexy, zindex);  } void SetIndex1 (int index) {    xindex = index;  } void SetIndex2 (int index) {    yindex = index;  } void SetIndex3 (int index) {    zindex = index;  }};class InOutput:  public Output2d_3d{  protected:  Datensatz inputDataset;  SelectIconlist *actionselecticons;  SelectIconlist *viewicons;  SelectIconlist *resultdisplaytyp;  SelectIconlist *pointtypicons;  DVektor *selectedinput;  ScrollWindow *Scroll;  RuleResultInfo *ruleresultinfo;    public:    InOutput (Display * initdisplay,	// the display 	       GC initgc,	// the gc 	       InputIcon * initOutputicon,	// my icon	       XFontStruct * fontstruct,	// the fontstruct 	       int initx, int inity,	// X-Pos, Y-Pos 	       int initwidth, int initheight,	// width, height 	       char *text);	// window-title     virtual ~ InOutput ();  virtual void HandleEvent (XEvent * Event);  virtual void Action (int actionnumber, int value);  virtual void SetDataset (Datensatz * inputDataset);  inline virtual Datensatz *GetDataset () {    return &inputDataset;  } inline DVektor *GetSelectedinputvector () {    return selectedinput;  } inline void SetSelectedinputvector (DVektor * input) {    selectedinput = input;  } protected:  void Unmapmyicons ();  void Mapmyicons ();  void InitOutput (DVektorArray * inputData);  void DrawDifference2d (int options,			 DVektorArray * originaldata,			 DVektorArray * calculateddata);  void DrawDifference3d (int options,			 DVektorArray * originaldata,			 DVektorArray * calculateddata);  void UndrawPoint2d (short xpos, short ypos, int options, int number);  void DrawInputData1d (int options);  void DrawInputData2d (int options);  void DrawInputData3d (int options);  void DrawClassMember2d (int options);  void DrawClassMember3d (int options);  void DrawInputData (int options);};class ClusterOutput:  public Output2d_3d{  protected:  MemberOutput * memberoutput;  ScrollWindow *Scroll;  ActionIcon *go, *reset, *makerules, *classify, *load, *save;  Ellipsis_2d **ellipsis_2d;  Ellipsis_3d **ellipsis_3d;  short ellipsisnumber;  Clustering *clustering;  SelectIconlist *viewicons;  SelectIconlist *singlemembership;  SelectIconlist *clustericons;  SelectIconlist *actionselecticons;  SelectIconlist *pointtypicons;  DVektor *selectedinput;  int clusternumber;  ClusterOptionWindow *optionwindow;//BVektor bvector;  BVektor *selectedcluster;  int exactness;  Guete_Typ validitytyp;    public:    ClusterOutput (Display * initdisplay,	// the display		    GC initgc,	// the gc		    ClusterIcon * initOutputicon,	// my icon		    XFontStruct * fontstruct,	// the fontstruct		    int initx, int inity,	// X-Pos, Y-Pos		    int initwidth, int initheight,	// width, height		    char *text);	// window-title    virtual ~ ClusterOutput ();  virtual void HandleEvent (XEvent * Event);  virtual void Action (int actionnumber, int value);  void SetClustertyp (ClusterInfo * values);  Clustering *Getclustering () {    return clustering;  } virtual void SetDataset (Datensatz * inputDataset);  virtual Datensatz *GetDataset () {    return Dataset;  } inline DVektor *GetSelectedinputvector () {    return selectedinput;  } inline void SetSelectedinputvector (DVektor * input);  inline MemberOutput *Getmemberoutput () {    return memberoutput;  } protected:  void SetClustering (Clustering * newClustering);  void Unmapmyicons ();  void Mapmyicons ();  short GetnearestClusterindex (int from_me);  void SelectUnselectIcons ();  void Calculate_ellipses ();  void InitOutput (DVektorArray * inputData);  void DrawClusterPoint (short xpos, short ypos, int options);  void UndrawClusterPoint (short xpos, short ypos, int options);  void Drawredcross (short xpos, short ypos, Drawable drawable);  void DrawCluster1d (int options);  void DrawCluster2d (int options);  void DrawCluster3d (int options);  void Draw3dClusterMemberTyp1 (int options);  void Draw2dClusterMemberTyp1 (int options);  void Draw3dClusterMemberTyp2 (int options);  void Draw2dClusterMemberTyp2 (int options);  void Draw2dGuete (int options);  void DrawData1d (int options);  void DrawData2d (int options);  void DrawData3d (int options);  void DrawCluster (int options);  void DrawCluster () {    DrawCluster (0);  } DVektor *Getnearestusercluster1d (short xpos, short *xis, short *yis);  DVektor *Getnearestusercluster2d (short xpos, short ypos, short *xis, short *yis);};class RuleOutput:  public Output2d{  protected:  OUTPUTSTATUS status;  Regelbasis rules;  IVektor selectedinputindex;  DVektor input;  BVektor selectedrules, selectedinputs, selectedoutputs;  Regelbasis_Ausgabe rulesoutput;  RuleResultInfo *acuteruleresultinfo;    public:    RuleOutput (Display * initdisplay,	// the display		 GC initgc,	// the gc		 RuleIcon * initOutputicon,	// my icon		 XFontStruct * fontstruct,	// the fontstruct		 int initx, int inity,	// X-Pos, Y-Pos		 int initwidth, int initheight,		// width, height		 char *text,	// window-title		 RuleInfo * Ruleinfo);	// all infos about rules    virtual ~ RuleOutput ();  virtual void HandleEvent (XEvent * Event);  virtual void Action (int actionnumber, int value);  void InitOutput (Datensatz * inputDataset);  virtual Datensatz *GetDataset () {    return Dataset;  } virtual void SetDataset (Datensatz * inputDataset);  void SetSelectedinputvector (DVektor * newselectedinput);  void CalculateResults (RuleResultInfo * ruleresultinfo);    protected:  void Unmapmyicons ();  void Mapmyicons ();  void CalculateResult ();  void DrawRules ();  void DrawInputinGraph (int xpos, int ypos, int drawwidth, int drawheight,			 double range, double minxvalue,			 short index,			 short rulenumber);  void DrawOutputinGraph (int xpos, int ypos, int drawwidth, int drawheight,			  double range, double minxvalue,			  short index,			  short rulenumber);};class ClassifyOutput:  public Output2d{  protected:  OUTPUTSTATUS status;  Klassifizierung classify;  IVektor selectedindex, classifyerrors, classifyok;  DVektor input;  BVektor selectedrules, selecteddims;  OnOffIcon *classify_yes_no;  int noclassfound;  Klassifizierungs_Ausgabe classifyoutput;    public:    ClassifyOutput (Display * initdisplay,	// the display		     GC initgc,	// the gc		     ClassifyIcon * initOutputicon,	// my icon		     XFontStruct * fontstruct,	// the fontstruct		     int initx, int inity,	// X-Pos, Y-Pos		     int initwidth, int initheight,	// width, height		     char *text,	// window-title		     RuleInfo * Ruleinfo);	// all infos about rules    virtual ~ ClassifyOutput ();  virtual void HandleEvent (XEvent * Event);  virtual void Action (int actionnumber, int value);  void InitOutput (Datensatz * inputDataset);  virtual Datensatz *GetDataset () {    return Dataset;  } virtual void SetDataset (Datensatz * inputDataset);  void SetSelectedinputvector (DVektor * newselectedinput);  void CalculateResults (Datensatz * dataset);    protected:  void Unmapmyicons ();  void Mapmyicons ();  void CalculateResult ();  void DrawRules ();  void DrawClassresultGraph (int x, int y, int drawwidth, int drawheight,			     double range, double minxvalue,			     short index,			     short classnumber);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -