Evolutionary Diversification in Anolis Lizards
Functions
individual.cpp File Reference

Implementation of Individual class. More...

#include "individual.hpp"
#include <wtl/numeric.hpp>
#include <wtl/random.hpp>
#include <wtl/iostr.hpp>
#include <wtl/math.hpp>
#include <sfmt.hpp>
#include <cmath>

Functions

double edal::pdf_beta (const double height, const double diameter)
 Beta distribution function for resource abundance.
 
double edal::pdf_triangle (const double height, const double diameter)
 Triangular distribution function for resource abundance.
 
double edal::abundance (const double height, const double diameter)
 Product Beta(u, v) Tri(u, v)
 
double edal::pdf_normal (const double height, const double diameter)
 Distribution of tree height given diameter.
 
double edal::pdf_exp (const double height, const double diameter)
 Distribution of twig diameter given height.
 
double edal::abundance_old (const double height, const double diameter)
 Product of Normal(u, v) and Exponential(u, v)
 
template<class Func >
double edal::integrate_triangle (Func &&func)
 Integral over \(0 \leq u \leq 1\) and \(0 \leq v \leq 1 - u\).
 
template<class Func >
double edal::integrate_square (Func &&func)
 Integral over \(0 \leq u,v \leq 1\).
 
double edal::gaussian_exponent (double x, const double mu, const double sigma)
 Make exponent of Gaussian function.
 
std::ostream & edal::operator<< (std::ostream &ost, const Individual &ind)
 put CSV on ostream
 
template<class Func >
std::string edal::test_resource_abundance (Func func)
 CSV string of \(F(u,v)\) in \(0 \leq u,v \leq 1\).
 
std::ostream & edal::operator<< (std::ostream &ost, const Individual::Loci &bs)
 Overload: output 15 instead of 00001111.
 

Detailed Description

Implementation of Individual class.