#include <chromosome.h>
Definition at line 55 of file chromosome.h.
Public Methods | |
| Chromosome (void) | |
| Chromosome (const Chromosome &A) | |
| ~Chromosome (void) | |
| const Chromosome & | operator= (const Chromosome &A) |
| void | id (const unsigned newid) |
| void | freq (const double new_f) |
| void | resize (const unsigned nl) |
| double | freq (void) const |
| unsigned | nloci (void) |
| unsigned | id (void) const |
Public Attributes | |
| Locus * | locus |
Protected Methods | |
| void | copyfrom (const Chromosome &A) |
Protected Attributes | |
| unsigned | chrom_id |
| unsigned | numloci |
| double | chrom_freq |
|
|
Definition at line 64 of file chromosome.h. References numloci.
|
|
|
Definition at line 65 of file chromosome.h. References copyfrom().
00065 {copyfrom(A);}
|
|
|
Definition at line 66 of file chromosome.h.
|
|
|
Definition at line 46 of file chromosome.cpp. References chrom_freq, chrom_id, locus, numloci, and resize(). Referenced by Chromosome(), and operator=().
00047 {
00048 if (this == &A) return;
00049 chrom_id = A.chrom_id;
00050 chrom_freq = A.chrom_freq;
00051 resize(A.numloci);
00052 for (unsigned i=0; i<numloci; i++) locus[i] = A.locus[i];
00053 }
|
|
|
Definition at line 74 of file chromosome.h. References chrom_freq.
00074 {return chrom_freq;}
|
|
|
Definition at line 71 of file chromosome.h. References chrom_freq. Referenced by matvec::Population::build_pop_gamete(), matvec::Population::cond_genotype_config(), matvec::Population::ind_gamete(), and matvec::Model::minfun_peeling().
00071 {chrom_freq = new_f;}
|
|
|
Definition at line 76 of file chromosome.h. References chrom_id.
00076 {return chrom_id;}
|
|
|
Definition at line 70 of file chromosome.h. References chrom_id. Referenced by matvec::Population::build_pop_gamete(), matvec::Genome::chrom_id(), matvec::Individual::maternal_chrom_id(), and matvec::Individual::paternal_chrom_id().
00070 {chrom_id = newid;}
|
|
|
Definition at line 75 of file chromosome.h. References numloci. Referenced by matvec::Genome::chrom_id(), matvec::Population::display(), and matvec::Population::ind_gamete().
00075 {return numloci;}
|
|
|
Definition at line 40 of file chromosome.cpp. References copyfrom().
00041 {
00042 copyfrom(A);
00043 return *this;
00044 }
|
|
|
Definition at line 55 of file chromosome.cpp. References locus, and numloci. Referenced by copyfrom(), matvec::Genome::remodel(), and matvec::Genome::resize().
|
|
|
Definition at line 58 of file chromosome.h. |
|
|
Definition at line 57 of file chromosome.h. |
|
|
|
Definition at line 57 of file chromosome.h. Referenced by Chromosome(), copyfrom(), nloci(), and resize(). |
1.2.16