-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dstatob.h
127 lines (86 loc) · 2.88 KB
/
Dstatob.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
GeneDoc: Multiple Sequence Alignment Editing Utility
Copyright (C) 2000, Karl Nicholas
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
void HeapSort( double *m_ScoreArray1, int m_ScoreCount1 );
class CDStatObject: public CObject {
private:
// Graphing Vars
double m_xBorderPct;
double m_yBorderPct;
double m_xDStatPct;
double m_yDStatPct;
double m_xKSprPct;
double m_yKSprPct;
CString m_ChartTitle;
double m_xChtTitPct;
double m_yYAxTPct;
CString m_YAxisTitle;
int m_LineWidth;
LOGFONT m_logFont;
int m_PageWidth;
int m_PageHeight;
// Data/Calc Vars
double *m_FracArray1;
double *m_FracArray2;
int m_where1, m_where2;
double m_DStat, m_KSpr;
BOOL m_DWhich;
public:
CDStatObject();
DECLARE_DYNCREATE(CDStatObject)
virtual ~CDStatObject();
virtual void Serialize(CArchive& ar); // overridden for document i/o
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
//
double *m_ScoreArray1;
double *m_ScoreArray2;
int m_ScoreCount1;
int m_ScoreCount2;
double m_RoundingFactor;
CString m_XAxisTitle;
double m_xXAxTPct;
int m_TSide;
CString m_NameSet1;
CString m_NameSet2;
// GUI Subroutines
CSize GetDocSize() { return CSize( m_PageWidth, m_PageHeight ); }
void DoDraw(CDC *pDC );
void OnDatafile( const CString& PathName );
void OnSet1( const CString& PathName );
void OnSet2( const CString& PathName );
void OnGraphsetup();
void OnWriteoutput( const CString& PathName );
void DeleteContents();
void DeleteSet1();
void DeleteSet2();
void SetTSide( int nTSide ) { m_TSide = nTSide; }
int GetTSide() { return m_TSide; }
BOOL MyDocDStat();
void WriteData(const CString& PathName );
protected:
void MyOpenDocumentFile(CStdioFile& iFile);
void MyOpenDocumentFileSet1(CStdioFile& iFile);
void MyOpenDocumentFileSet2(CStdioFile& iFile);
CFont* SelectDocFont(CDC* pDC, CFont& font, int Escapement);
// Data/Calc Subroutines
void MyDocKS2( double *DStat, double *KSpr, int *where1, int *where2, BOOL* DWhich );
void MyAveVar( double *pDbl, int count, double* pAve, double *pVar );
double KSProb( int Count1, int Count2, double dstat );
int PakDat( int Points, double *ScoreArray, double *FracArray );
void ReCalcDStat();
};