Matrix Elements VB-800 Uživatelský manuál Strana 99

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 172
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 98
A3.5 An example 91
<!--------------------------------- end ------------------------------->
</body>
</html>
.......................................................................................
A3.5 An example
The following listing gives an example of the type of functionality that can be imple-
mented to create an interactive package. The actual implementation is incomplete.
.........................................................ox/tutorial/bprobitex.ox
#include <oxstd.h>
#include <oxdraw.h>
#include <oxfloat.h>
#include <oxprob.h>
#include "bprobitex.h"
/*------------------------ BprobitEx : Bprobit ----------------------*/
BprobitEx::BprobitEx()
{
// initialize base class
Modelbase();
// set default for method, model class, and model counter
m_iMethod = M_PROBIT;
m_iModelClass = MC_BINARY;
m_iModel = 0;
// ... remaining defaults
// print startup message
println("---- ", GetPackageName(), " ", GetPackageVersion(),
" session started at ", time(), " on ", date(), " ----");
}
BprobitEx::GetPackageName()
{ // return package name
return "BprobitEx";
}
BprobitEx::GetPackageVersion()
{ // return package version
return "1.0";
}
BprobitEx::GetParNames()
{ // return array of strings with parameter names
return m_asX;
}
BprobitEx::SetSelSample(const iYear1, const iPeriod1, const iYear2,
Zobrazit stránku 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 171 172

Komentáře k této Příručce

Žádné komentáře