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

matvec::LocusStruct Class Reference

#include <geneticdist.h>

List of all members.


Detailed Description

a structure for a locus

See also:
Locus

Definition at line 46 of file geneticdist.h.

Public Methods

 LocusStruct (void)
 LocusStruct (const unsigned na)
const LocusStruct & operator= (const LocusStruct &A)
void resize (const unsigned na)
void nallele (const unsigned na)
unsigned nallele (void) const

Public Attributes

char qtl_ml
Vector< double > allele_freq
doubleMatrix genotypic_val_mat
double distance
std::string nameOfcol1
std::string nameOfcol2
unsigned nextMarker
unsigned nHaplotypes
Vector< unsigned > listOfAllele
Vector< unsigned > al1Haplo
Vector< unsigned > al2Haplo
SafeSTLVector< int > peelOrder
bool cutLoops

Protected Methods

void copyfrom (const LocusStruct &A)

Protected Attributes

unsigned numallele


Constructor & Destructor Documentation

matvec::LocusStruct::LocusStruct void    [inline]
 

Definition at line 68 of file geneticdist.h.

References numallele.

00068 {numallele = 0;}

matvec::LocusStruct::LocusStruct const unsigned    na [inline]
 

Definition at line 69 of file geneticdist.h.

References numallele, and resize().

00069 {numallele = 0; resize(na);}


Member Function Documentation

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

Definition at line 31 of file geneticdist.cpp.

References allele_freq, genotypic_val_mat, numallele, qtl_ml, and resize().

Referenced by operator=().

00032 {
00033    resize(A.numallele);
00034    qtl_ml = A.qtl_ml;
00035    allele_freq = A.allele_freq;
00036    genotypic_val_mat = A.genotypic_val_mat;
00037 }

unsigned matvec::LocusStruct::nallele void    const [inline]
 

Definition at line 77 of file geneticdist.h.

References numallele.

00077 {return numallele;}

void matvec::LocusStruct::nallele const unsigned    na [inline]
 

Definition at line 76 of file geneticdist.h.

References numallele.

Referenced by matvec::GeneticDist::locus().

00076 {numallele = na;}

const LocusStruct& matvec::LocusStruct::operator= const LocusStruct &    A [inline]
 

Definition at line 72 of file geneticdist.h.

References copyfrom(), and numallele.

00073            {numallele=0; copyfrom(A); return *this;}

void matvec::LocusStruct::resize const unsigned    na
 

Definition at line 39 of file geneticdist.cpp.

References allele_freq, genotypic_val_mat, numallele, matvec::Matrix< double >::resize(), and matvec::Vector< double >::resize().

Referenced by copyfrom(), and LocusStruct().

00040 {
00041    if (numallele == na) return;
00042    numallele = na;
00043    allele_freq.resize(numallele);
00044    genotypic_val_mat.resize(numallele,numallele);
00045 }


Member Data Documentation

Vector<unsigned> matvec::LocusStruct::al1Haplo
 

Definition at line 66 of file geneticdist.h.

Vector<unsigned> matvec::LocusStruct::al2Haplo
 

Definition at line 66 of file geneticdist.h.

Vector<double> matvec::LocusStruct::allele_freq
 

Definition at line 54 of file geneticdist.h.

Referenced by matvec::Population::compute_pdm(), copyfrom(), matvec::Population::llhood_genotype(), matvec::GeneticDist::locus(), and resize().

bool matvec::LocusStruct::cutLoops
 

Definition at line 80 of file geneticdist.h.

double matvec::LocusStruct::distance
 

Definition at line 57 of file geneticdist.h.

Referenced by matvec::GeneticDist::get_distance(), and matvec::GeneticDist::put_distance().

doubleMatrix matvec::LocusStruct::genotypic_val_mat
 

Definition at line 55 of file geneticdist.h.

Referenced by copyfrom(), matvec::GeneticDist::locus(), and resize().

Vector<unsigned> matvec::LocusStruct::listOfAllele
 

Definition at line 65 of file geneticdist.h.

std::string matvec::LocusStruct::nameOfcol1
 

Definition at line 60 of file geneticdist.h.

Referenced by matvec::GeneticDist::putColmNames().

std::string matvec::LocusStruct::nameOfcol2
 

Definition at line 60 of file geneticdist.h.

Referenced by matvec::GeneticDist::putColmNames().

unsigned matvec::LocusStruct::nextMarker
 

Definition at line 63 of file geneticdist.h.

unsigned matvec::LocusStruct::nHaplotypes
 

Definition at line 64 of file geneticdist.h.

unsigned matvec::LocusStruct::numallele [protected]
 

Definition at line 49 of file geneticdist.h.

Referenced by copyfrom(), LocusStruct(), nallele(), operator=(), and resize().

SafeSTLVector<int> matvec::LocusStruct::peelOrder
 

Definition at line 79 of file geneticdist.h.

char matvec::LocusStruct::qtl_ml
 

Definition at line 53 of file geneticdist.h.

Referenced by copyfrom(), and matvec::GeneticDist::locus().


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