Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

matvec::FieldStruct Class Reference

#include <fieldstruct.h>

List of all members.


Detailed Description

a structure for a data column

See also:
Field Data

Definition at line 35 of file fieldstruct.h.

Public Methods

 FieldStruct (void)
 FieldStruct (const FieldStruct &A)
 ~FieldStruct (void)
const FieldStruct & operator= (const FieldStruct &A)
void index (const unsigned k)
void nlevel (const unsigned k)
void nmiss (const unsigned k)
void mean (const double x)
void std (const double x)
void count_miss (const int k)
void classi (const char c)
void type (const char c)
void name (const std::string &n)
unsigned index (void) const
unsigned nlevel (void) const
unsigned nmiss (void) const
double mean (void) const
double std (void) const
char classi (void) const
char type (void) const
const std::string name (void) const

Protected Methods

void copyfrom (const FieldStruct &A)

Protected Attributes

char mytype
char myclassi
unsigned mynlevel
unsigned myindex
unsigned mynmiss
double mymean
double mystd
std::string myname


Constructor & Destructor Documentation

matvec::FieldStruct::FieldStruct void    [inline]
 

Definition at line 74 of file fieldstruct.h.

References myclassi, myindex, mynlevel, mynmiss, and mytype.

00075 { mytype='F'; myclassi='F'; mynlevel=0; myindex=0; mynmiss=0; }

matvec::FieldStruct::FieldStruct const FieldStruct &    A
 

Definition at line 37 of file fieldstruct.cpp.

References copyfrom().

00037 {copyfrom(A);}

matvec::FieldStruct::~FieldStruct void    [inline]
 

Definition at line 49 of file fieldstruct.h.

00049 {;}


Member Function Documentation

char matvec::FieldStruct::classi void    const [inline]
 

Definition at line 68 of file fieldstruct.h.

References myclassi.

00068 {return myclassi;}

void matvec::FieldStruct::classi const char    c [inline]
 

Definition at line 59 of file fieldstruct.h.

References myclassi.

Referenced by matvec::Model::build_model_term(), matvec::Field::classi(), matvec::Model::covariate(), matvec::Population::input_data(), matvec::Population::input_markerData(), and matvec::Model::prepare_data().

00059 {myclassi = c;}

void matvec::FieldStruct::copyfrom const FieldStruct &    A [protected]
 

Definition at line 39 of file fieldstruct.cpp.

References myclassi, myindex, myname, mynlevel, mynmiss, and mytype.

Referenced by FieldStruct(), and operator=().

00040 {
00041    if (this == &A) return;
00042    mytype   = A.mytype;
00043    myclassi = A.myclassi;
00044    mynlevel = A.mynlevel;
00045    mynmiss  = A.mynmiss;
00046    myindex  = A.myindex;
00047    myname   = A.myname;
00048 }

void matvec::FieldStruct::count_miss const int    k [inline]
 

Definition at line 58 of file fieldstruct.h.

References mynmiss.

Referenced by matvec::Field::count_miss(), matvec::Field::pretend_missing(), matvec::Field::recover_missing(), and matvec::Field::set_missing().

00058 {mynmiss += k;}

unsigned matvec::FieldStruct::index void    const [inline]
 

Definition at line 63 of file fieldstruct.h.

References myindex.

00063 {return myindex;}

void matvec::FieldStruct::index const unsigned    k [inline]
 

Definition at line 53 of file fieldstruct.h.

References myindex.

Referenced by matvec::Field::index(), matvec::Model::prepare_data(), and matvec::Model::save_pos_val().

00053 {myindex = k;}

double matvec::FieldStruct::mean void    const [inline]
 

Definition at line 66 of file fieldstruct.h.

References mymean.

00066 {return mymean;}

void matvec::FieldStruct::mean const double    x [inline]
 

Definition at line 56 of file fieldstruct.h.

References mymean.

Referenced by matvec::Model::info(), matvec::GLMM::info(), and matvec::Model::save_pos_val().

00056 {mymean = x;}

const std::string matvec::FieldStruct::name void    const [inline]
 

Definition at line 70 of file fieldstruct.h.

References myname.

00070 {return myname;}

void matvec::FieldStruct::name const std::string &    n [inline]
 

Definition at line 61 of file fieldstruct.h.

References myname.

Referenced by matvec::Model::build_model_term(), matvec::fieldindex(), matvec::Model::info(), matvec::GLMM::info(), matvec::Population::input_data(), matvec::Population::input_markerData(), matvec::Field::name(), matvec::Model::out_lsmeans_to_stream(), matvec::Model::prepare_data(), matvec::Model::save(), matvec::GLMM::save(), and matvec::Model::trait_effect_level().

00061 {myname = n;}

unsigned matvec::FieldStruct::nlevel void    const [inline]
 

Definition at line 64 of file fieldstruct.h.

References mynlevel.

00064 {return mynlevel;}

void matvec::FieldStruct::nlevel const unsigned    k [inline]
 

Definition at line 54 of file fieldstruct.h.

References mynlevel.

Referenced by matvec::Model::info(), matvec::GLMM::info(), matvec::Field::nlevel(), matvec::Field::operator<(), matvec::Field::operator==(), matvec::Field::operator>(), matvec::Model::prepare_data(), matvec::Model::save_pos_val(), and matvec::Field::sub().

00054 {mynlevel = k;}

unsigned matvec::FieldStruct::nmiss void    const [inline]
 

Definition at line 65 of file fieldstruct.h.

References mynmiss.

00065 {return mynmiss;}

void matvec::FieldStruct::nmiss const unsigned    k [inline]
 

Definition at line 55 of file fieldstruct.h.

References mynmiss.

Referenced by matvec::Field::nmiss(), and matvec::Model::prepare_data().

00055 {mynmiss = k;}

const FieldStruct & matvec::FieldStruct::operator= const FieldStruct &    A
 

Definition at line 50 of file fieldstruct.cpp.

References copyfrom().

00051 {
00052    copyfrom(A);
00053    return *this;
00054 }

double matvec::FieldStruct::std void    const [inline]
 

Definition at line 67 of file fieldstruct.h.

References mystd.

00067 {return mystd;}

void matvec::FieldStruct::std const double    x [inline]
 

Definition at line 57 of file fieldstruct.h.

References mystd.

Referenced by matvec::Model::info(), matvec::GLMM::info(), and matvec::Model::save_pos_val().

00057 {mystd = x;}

char matvec::FieldStruct::type void    const [inline]
 

Definition at line 69 of file fieldstruct.h.

References mytype.

00069 {return mytype;}

void matvec::FieldStruct::type const char    c [inline]
 

Definition at line 60 of file fieldstruct.h.

References mytype.

Referenced by matvec::Field::covariance(), matvec::Field::map(), matvec::Field::max(), matvec::Field::mean(), matvec::Field::min(), matvec::operator *(), matvec::Field::operator *=(), matvec::operator+(), matvec::Field::operator+=(), matvec::operator-(), matvec::Field::operator-=(), matvec::operator/(), matvec::Field::operator/=(), matvec::operator<(), matvec::Field::operator<(), matvec::Field::operator==(), matvec::Field::operator>(), matvec::Field::out_to_stream(), matvec::Field::product(), matvec::Field::sub(), matvec::Field::sum(), matvec::Field::sumsq(), matvec::Field::type(), and matvec::Field::value_for_missing().

00060 {mytype = c;}


Member Data Documentation

char matvec::FieldStruct::myclassi [protected]
 

Definition at line 37 of file fieldstruct.h.

Referenced by classi(), copyfrom(), and FieldStruct().

unsigned matvec::FieldStruct::myindex [protected]
 

Definition at line 38 of file fieldstruct.h.

Referenced by copyfrom(), FieldStruct(), and index().

double matvec::FieldStruct::mymean [protected]
 

Definition at line 39 of file fieldstruct.h.

Referenced by mean().

std::string matvec::FieldStruct::myname [protected]
 

Definition at line 41 of file fieldstruct.h.

Referenced by copyfrom(), and name().

unsigned matvec::FieldStruct::mynlevel [protected]
 

Definition at line 38 of file fieldstruct.h.

Referenced by copyfrom(), FieldStruct(), and nlevel().

unsigned matvec::FieldStruct::mynmiss [protected]
 

Definition at line 38 of file fieldstruct.h.

Referenced by copyfrom(), count_miss(), FieldStruct(), and nmiss().

double matvec::FieldStruct::mystd [protected]
 

Definition at line 39 of file fieldstruct.h.

Referenced by std().

char matvec::FieldStruct::mytype [protected]
 

Definition at line 37 of file fieldstruct.h.

Referenced by copyfrom(), FieldStruct(), and type().


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 17:14:22 2005 for Matvec by doxygen1.2.16