etirm::ExamineeGrpCov< R, P > Class Template Reference

This class is a descendant of Examinee which also contains information about the group the examinee belongs to (a group covariate). More...

#include <ExamineeGrpCov.h>

Inheritance diagram for etirm::ExamineeGrpCov< R, P >:

Inheritance graph
[legend]
Collaboration diagram for etirm::ExamineeGrpCov< R, P >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef short group_type
 Group identifier type.

Public Member Functions

 ExamineeGrpCov (int nitems=0, group_type group=1)
 Class constructor.
group_type Group () const
 Returns the group which the examinee belongs to.
void SetGroup (int group)
 Assigns the group which examinee belongs to.

Protected Attributes

group_type mGroup
 Group which the examinee belongs to (first group is group 1).


Detailed Description

template<class R, class P>
class etirm::ExamineeGrpCov< R, P >

This class is a descendant of Examinee which also contains information about the group the examinee belongs to (a group covariate).

Template Parameters

Parameters:
P Type for storing vector of posterior probabilities
R Type for storing vector of item responses.

Definition at line 46 of file ExamineeGrpCov.h.


Member Typedef Documentation

template<class R, class P>
typedef short etirm::ExamineeGrpCov< R, P >::group_type

Group identifier type.

Definition at line 53 of file ExamineeGrpCov.h.


Constructor & Destructor Documentation

template<class R, class P>
etirm::ExamineeGrpCov< R, P >::ExamineeGrpCov ( int  nitems = 0,
group_type  group = 1 
) [inline]

Class constructor.

Function Parameters

Parameters:
[in] nitems number of items in response string
[in] group group number (where first group is group 1)

Definition at line 64 of file ExamineeGrpCov.h.

00065                                                          :
00066       mGroup(group), Examinee<R, P>(nitems)
00067     {
    }


Member Function Documentation

template<class R, class P>
group_type etirm::ExamineeGrpCov< R, P >::Group (  )  const [inline]

Returns the group which the examinee belongs to.

Return value: group number (where first group is group 1).

Definition at line 75 of file ExamineeGrpCov.h.

References etirm::ExamineeGrpCov< R, P >::mGroup.

Referenced by etirm::examinee_get_group().

00077     {
00078       return mGroup;

Here is the caller graph for this function:

template<class R, class P>
void etirm::ExamineeGrpCov< R, P >::SetGroup ( int  group  )  [inline]

Assigns the group which examinee belongs to.

Function Parameters

Parameters:
[in] group Group number (where first group is group 1).

Definition at line 104 of file ExamineeGrpCov.h.

References etirm::ExamineeGrpCov< R, P >::mGroup.

Referenced by etirm::examinee_set_group().

00106   {
00107     if (group < 1)
00108       throw InvalidArgument("Invalid group number", "ExamineeGrpCov::SetGroup");
00109     mGroup = group;

Here is the caller graph for this function:


Member Data Documentation

template<class R, class P>
group_type etirm::ExamineeGrpCov< R, P >::mGroup [protected]

Group which the examinee belongs to (first group is group 1).

Definition at line 92 of file ExamineeGrpCov.h.

Referenced by etirm::ExamineeGrpCov< R, P >::Group(), and etirm::ExamineeGrpCov< R, P >::SetGroup().


The documentation for this class was generated from the following file:
Generated on Sat Mar 1 21:41:23 2008 for ETIRM by  doxygen 1.5.4